return false;
} else {
Config::set('database', $funcname, 'success');
- if ($post_update) {
+ if (isset($post_update)) {
Config::set('system', 'build', $x);
}
return true;
}
} else {
Config::set('database', $funcname, 'success');
- if ($post_update) {
+ if (isset($post_update)) {
Config::set('system', 'build', $x);
}
return true;
use Friendica\Core\System;
use Friendica\Util\DateTimeFormat;
+use mysqli;
use PDO;
use PDOException;
use PDOStatement;
self::$db_name = $db;
self::$db_charset = $charset;
+ $port = 3306;
$serveraddr = trim($serveraddr);
$serverdata = explode(':', $serveraddr);
}
}
- if (!self::$connected && class_exists('mysqli')) {
+ if (!self::$connected && class_exists('\mysqli')) {
self::$driver = 'mysqli';
self::$db = @new mysqli($server, $user, $pass, $db, $port);
if (!mysqli_connect_errno()) {