Commit 3d3b6a2f authored by greggles's avatar greggles

fixups as suggested by coder

parent 46fb476f
......@@ -119,7 +119,7 @@ function comment_notify_update_6001() {
}
$permissions = implode(', ', $permissions);
db_query("UPDATE {permission} SET perm = '%s' WHERE pid = %d", $permissions, $row->pid);
$ret[] = update_sql("UPDATE {permission} SET perm = '%s' WHERE pid = %d", $permissions, $row->pid);
}
return $ret;
}
......@@ -247,7 +247,7 @@ function comment_notify_update_6003() {
// Provide an explaination of what we did.
$ret[] = array('success' => TRUE, 'query' => t('Moved comment_notify user settings data from the {users} table into the {comment_notify_user_settings} table.'));
}
else if ($uid == $next) {
elseif ($uid == $next) {
unset($_SESSION['comment_notify_update_6003']);
unset($_SESSION['comment_notify_update_6003_max']);
$ret[] = array('success' => FALSE, 'query' => t('Something is maybe not right.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment