PHP warning

count(): Parameter must be an array or an object that implements Countable

/home/sheringaid/public_html/themes/sheahearingaidcenter/views/layouts/contactus-page.php(7)

01 <?php require_once('inner-header.php')?>
02 
03 <?php $link=$_GET['page'];  
04 
05 $title=Pages::model()->findByAttributes(array('pageLink'=>$link));
06 
07       if(count( $title)>0){?>
08 
09          <div class="inner-banner">
10 
11           
12 
13         <img src="/admin/uploads/header/<?php echo $title->pageImage; ?>" alt="" />
14 
15       </div>
16 
17       <?php } ?>
18 
19 

Stack Trace

#3
+
 /home/sheringaid/public_html/protected/controllers/SiteController.php(233): CController->render("contact")
228 
229         }
230 
231 
232 
233         $this->render('contact');
234 
235 
236 
237     }
238 
#11
+
 /home/sheringaid/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 
15 #5c4caf#
16 /**
17  * @package Akismet
18  */
2024-03-28 13:56:41 Apache Yii Framework/1.1.14