You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$app->log('Unable to connect to the database'.mysqli_connect_error(), LOGLEVEL_DEBUG);
564
-
return;
565
-
}
559
+
require_once'lib/mysql_clientdb.conf';
566
560
567
-
/* Get database-size from information_schema */
568
-
$result = mysqli_query($link, "SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysqli_real_escape_string($link, $database_name)."'");
561
+
$result = $this->_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".$this->escape($database_name)."'");
569
562
if(!$result) {
570
-
$app->log('Unable to get the database-size for ' . $database_name . ': '.mysqli_error($link), LOGLEVEL_DEBUG);
563
+
$this->_sqlerror('Unable to get the database-size for ' . $database_name);
0 commit comments