reverted PHP version thet works with MySQL 5.7
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
global $db;
|
||||
|
||||
/// Send Error To Client
|
||||
/** @return error message from server to client
|
||||
|
||||
@@ -13,6 +15,10 @@
|
||||
}
|
||||
@endcode */
|
||||
function error($txt) {
|
||||
error_log("**** ERROR: ".$txt);
|
||||
if (isset($db) && is_object($db)) {
|
||||
error_log("**** DATABASE ERROR: ".$db->error);
|
||||
}
|
||||
echo json_encode(array('success' => false, 'txt' => $txt));
|
||||
exit;
|
||||
}
|
||||
@@ -83,4 +89,4 @@ EOT;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user