After I updated my php to 5.3 this error started to showing.
Strict Standards: Only variables should be passed by reference in /var/www/site/Functions/Cases.php on line 108 Strict Standards: Only variables should be passed by reference in /var/www/site/Functions/Cases.php on line 102 Strict Standards: Only variables should be passed by reference in /var/www/site/Functions/Cases.php on line 102
I would like to know how to fix it!
function CaseID ( $id ) {
return array_pop ( explode ( '-' , $id ) ) ;
} // line 102
function GetCaseByID ( $caseID ) {
$db = Connection ( 'db_misc' ) ;
$sql = $db->prepare ( 'SELECT * FROM `t_cases` WHERE cid = :cid' ) ;
$sql->bindParam ( ':cid' , CaseID ( $caseID ) , PDO::PARAM_INT ) ; // line 108
$sql->execute ( ) ;
return $sql->fetch ( PDO::FETCH_ASSOC ) ;
}