Skip to content

Commit

Permalink
5642 added error message for failed at_db_create(), to display when D…
Browse files Browse the repository at this point in the history
…B users does not have create db permission
  • Loading branch information
gregrgay committed Mar 9, 2016
1 parent 6f24841 commit 801921d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/lib/mysql_connect.inc.php
Expand Up @@ -306,9 +306,9 @@ function at_db_version($db){
}
function at_db_create($sql, $db){
if(defined('MYSQLI_ENABLED')){
$result = $db->query($sql);
$result = $db->query($sql) or (error_log(print_r(mysqli_error(), true), 0) and $msg->addError($displayErrorMessage));
}else{
$result = mysql_query($sql, $db);
$result = mysql_query($sql, $db) or (error_log(print_r(mysql_error(), true), 0) and $msg->addError($displayErrorMessage));
}
return $result;
}
Expand Down

0 comments on commit 801921d

Please sign in to comment.