PHP notice

Undefined variable: usesrow

/home/fdmjweb/public_html/limesurvey/application/helpers/frontend_helper.php(958)

946         {
947             if (isset($usesleft) && $usesleft<=1)
948             {
949                 // Finish the token
950                 if (isTokenCompletedDatestamped($thissurvey))
951                 {
952                     $oTokenInformation->completed = $today;
953                 } else {
954                     $oTokenInformation->completed = 'Y';
955                 }
956                 if(!empty($participant_id))
957                 {
958                     $slquery = Survey_links::model()->find('participant_id = :pid AND survey_id = :sid AND token_id = :tid', array(':pid'=>$participant_id, ':sid'=>$surveyid, ':tid'=>$usesrow->tid));
959                     
960                     if (isTokenCompletedDatestamped($thissurvey))
961                     {
962                         $slquery->date_completed = $today;
963                     } else {
964                         // Update the survey_links table if necessary, to protect anonymity, use the date_created field date
965                         $slquery->date_completed = $slquery->date_created;
966                     }
967                     $slquery->save();
968                 }
969             }
970             $oTokenInformation->usesleft = $oTokenInformation->usesleft-1;

Stack Trace

#0
+
 /home/fdmjweb/public_html/limesurvey/application/helpers/SurveyRuntimeHelper.php(436): submittokens()
431                     }
432 
433                     //Update the token if needed and send a confirmation email
434                     if (isset($_SESSION['survey_'.$surveyid]['thistoken']))
435                     {
436                         submittokens();
437                     }
438 
439                     //Send notifications
440 
441                     sendSubmitNotifications($surveyid);
#1
+
 /home/fdmjweb/public_html/limesurvey/application/controllers/survey/index.php(651): SurveyRuntimeHelper->run("134255", array("surveyid" => "134255", "thissurvey" => array("sid" => "134255", "owner_id" => "3", "admin" => "Philip Colvin", "active" => "Y", ...), "thisstep" => "2", "clienttoken" => "e39ssghqquwz8k3", ...))
646         //Send local variables to the appropriate survey type
647         unset($redata);
648         $redata = compact(array_keys(get_defined_vars()));
649         Yii::import('application.helpers.SurveyRuntimeHelper');
650         $tmp = new SurveyRuntimeHelper();
651         $tmp->run($surveyid,$redata);
652 
653         if (isset($_POST['saveall']) || isset($flashmessage))
654         {
655             echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
656         }
#2
+
 /home/fdmjweb/public_html/limesurvey/application/controllers/survey/index.php(18): index->action()
13 
14 class index extends CAction {
15 
16     public function run()
17     {
18         $this->action();
19     }
20 
21     function action()
22     {
23         global $surveyid;
2013-02-12 09:19:24 Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.35 Yii Framework/1.1.10