PHP error

Non-static method Saved_control::getCountOfAll() should not be called statically

C:\etc\Apache\htdocs\MSSQL\application\helpers\common_helper.php(2984)

2972     return dbSelectLimitAssoc($uquery);     //Checked
2973 }
2974 
2975 /**
2976 * This function returns a count of the number of saved responses to a survey
2977 *
2978 * @param mixed $surveyid Survey ID
2979 */
2980 function getSavedCount($surveyid)
2981 {
2982     $surveyid=(int)$surveyid;
2983 
2984     return Saved_control::getCountOfAll($surveyid);
2985 }
2986 
2987 /**
2988 * Returns the base language from a survey id
2989 *
2990 * @deprecated Use Survey::model()->findByPk($surveyid)->language
2991 * @param int $surveyid
2992 * @return string
2993 */
2994 function getBaseLanguageFromSurveyID($surveyid)
2995 {
2996     return Survey::model()->findByPk($surveyid)->language;

Stack Trace

#0
+
 C:\etc\Apache\htdocs\MSSQL\application\helpers\common_helper.php(2984): Saved_control::getCountOfAll()
2979 */
2980 function getSavedCount($surveyid)
2981 {
2982     $surveyid=(int)$surveyid;
2983 
2984     return Saved_control::getCountOfAll($surveyid);
2985 }
2986 
2987 /**
2988 * Returns the base language from a survey id
2989 *
#1
+
 C:\etc\Apache\htdocs\MSSQL\application\views\admin\saved\savedbar_view.php(16): getSavedCount("761276")
11             </a>
12         </div>
13     </div>
14 </div>
15 <div class='header ui-widget-header'>
16     <?php $clang->eT('Saved Responses:'); ?> <?php echo getSavedCount($iSurveyId); ?>
17 </div>
#6
+
 C:\etc\Apache\htdocs\MSSQL\application\core\Survey_Common_Action.php(268): CController->render("/admin/saved/savedbar_view", array("sSurveyName" => "UNC Lineberger Comprehensive Cancer Center Survey", "iSurveyId" => "761276", "display" => array("menu_bars" => false), "clang" => Limesurvey_lang, ...))
263         {
264             if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output')))
265             {
266                 if (is_numeric($sViewKey))
267                 {
268                     Yii::app()->getController()->render($sViewPath . $viewUrl, $aData);
269                 }
270                 elseif (is_array($viewUrl))
271                 {
272                     foreach ($viewUrl as $aSubData)
273                     {
2012-10-30 11:50:57 Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 Yii Framework/1.1.10