hi im working on a php script and i have come across the following error does anyone have a ideal what can cause this the error is:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/letsswin/public_html/dating_V1/dating/admincp/educations.php on line 74.
the code where it comes from is :
<?php
if(isset($error) && !empty($error))
echo '<p style="margin:0px; padding:5px 20px"><font color="#FF0000"><small><i>'.$error.'</i></small></font></p>';
$list = getListed(array('EducationID' => 'Id', 'L1Education' => 'L1Value', 'L2Education' => 'L2Value'), array($table_prefix.'educations', 'Id'));
if(count($list)>0){
?>
any help would be much appreciated ty jan x