Hi can any body help with this error
here is the tutorial code im using
$result_array = self::find_by_sql($sql);
return !empty($result_array) ? array_shift($result_array) : false;
I can print out the sql query so i know its returning the correct row, The sql has LIMIT 1 to return the single row.
Heres the error
Warning: array_shift() [function.array-shift]: The argument should be an array
Thanks in advance