diff --git a/safemysql.class.php b/safemysql.class.php index 5979cec..4a2ed2a 100644 --- a/safemysql.class.php +++ b/safemysql.class.php @@ -320,7 +320,7 @@ class SafeMySQL $ret = array(); if ( $res = $this->rawQuery($query) ) { - while($row = $res->fetch($res)) + while($row = $this->fetch($res)) { $key = $row[$index]; unset($row[$index]);