Parse error in node_import.api.inc on line 190 caused by missing double quote on line 187.
This
else if ($title != '' && ($node = db_fetch_object(db_query("SELECT nid FROM {node} WHERE title = '%s', $title)))) {
$nids[$title] = $node->nid;
}
else if ($title != '' && ($node = db_fetch_object(db_query("SELECT nid FROM {node} WHERE title SOUNDS LIKE '%s'", $title)))) {
$nids[$title] = $node->nid;
}
should be this
else if ($title != '' && ($node = db_fetch_object(db_query("SELECT nid FROM {node} WHERE title = '%s', $title")))) {
$nids[$title] = $node->nid;
}
else if ($title != '' && ($node = db_fetch_object(db_query("SELECT nid FROM {node} WHERE title SOUNDS LIKE '%s'", $title)))) {
$nids[$title] = $node->nid;
}
Comments
Comment #1
Robrecht Jacques commentedshould NOT be
but
Fixed. Thanks!
Comment #2
ambereyes commentedYikes!
You are so right ... thanks.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.