Please someone can help me?
I got the error message Parse error: syntax error, unexpected T_BOOLEAN_AND
Error message refers to the line:
$db->delete("weblog_postmonitor","post_id=".$post->id." AND user_id=".$user->id);
that seems to be correct, in the following piece of code:
if ($user) {
$loc = exponent_core_makeLocation('weblogmodule', $_GET['src']);
$weblog = $db->selectObject("weblogmodule_config","location_data=".serialize($loc));
$post = $db->selectObject("weblog_post","src=".$_GET['src']);
if ($post) {
$existing = $db->selectObject("weblog_postmonitor","post_id=".$post->id." AND user_id=".$user->id);
if ($existing && $_GET['monitor'] == 1 || !$existing && $_GET['monitor'] == 0) {
// No change
exponent_flow_redirect();
} else {
if ($_GET['monitor'] == 0) {
$db->delete("weblog_postmonitor","post_id=".$post->id." AND user_id=".$user->id);
exponent_flow_redirect();
} else {