diff --git a/src/DBManager.php b/src/DBManager.php index 44bd5ef..89e0d3d 100644 --- a/src/DBManager.php +++ b/src/DBManager.php @@ -498,7 +498,7 @@ public function update($row, $where='', $limit=-1, $updated_by='', $table='') if(!empty($where)) { // ID found - if(ctype_digit($where)) + if(is_numeric($where)) { $where_dyn[] = "`ID` = {$where}"; } @@ -604,7 +604,7 @@ public function delete($where, $limit=-1, $deleted_by='', $table='') { $sql .= " WHERE "; - if(ctype_digit($where)) + if(is_numeric($where)) { $sql .= " ID = {$where} "; }