Skip to content

Commit

Permalink
replace ctype_digit by is_numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
h2lsoft committed Jul 22, 2020
1 parent 18372ae commit d3038d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}
Expand Down Expand Up @@ -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} ";
}
Expand Down

0 comments on commit d3038d9

Please sign in to comment.