This commit is contained in:
Shish 2019-10-02 09:05:48 +01:00
parent 704cab4470
commit 486c048950

View file

@ -203,8 +203,8 @@ class Database
$stmt = $this->db->prepare( $stmt = $this->db->prepare(
"-- " . str_replace("%2F", "/", urlencode(@$_GET['q'])). "\n" . "-- " . str_replace("%2F", "/", urlencode(@$_GET['q'])). "\n" .
$query $query
) );
assert(!is_bool($stmt));; assert(!is_bool($stmt));
// $stmt = $this->db->prepare($query); // $stmt = $this->db->prepare($query);
if (!array_key_exists(0, $args)) { if (!array_key_exists(0, $args)) {
foreach ($args as $name=>$value) { foreach ($args as $name=>$value) {
@ -313,8 +313,8 @@ class Database
} else { } else {
$id = $this->db->lastInsertId(); $id = $this->db->lastInsertId();
} }
assert(is_numeric($id)); assert(is_numeric($id));
return (int)$id; return (int)$id;
} }
/** /**