PHP warning

A non-numeric value encountered

/www/htdocs/w00ec255/colibri-travel/protected/views/trips/book.php(388)

376         </div>
377          <div class="row padding-top-10px">
378              <div class="col-xs-12"><b>
379             <?php if(!empty($journey->services))
380                 echo "<strong>".Yii::t('iyt','optional_services')."</strong><br/>"; ?>
381             </b></div>
382          </div>
383         <div class="row padding-top-10px">
384             <div class="col-xs-12">
385             <?php foreach($journey->services as $key => $s)
386             {
387                 if($s->type == 1)
388                     $price = ($model->adults + $model->kids) * GF::calculatePrice($s->price,$journey->rv->marge,$s->currency,$journey->marge,true);
389                 else
390                     $price = ($model->adults + $model->kids) * GF::calculateFlightPrice($s->price,$journey->rv->marge,$s->currency,$journey->marge,true);
391                 echo CHtml::checkBox("optional[".$s->id."]",false);
392 
393                 if($price == 0 && $s->price != NULL)
394                 {
395                     echo " ".$s['text_'.Yii::app()->language]." - ".GF::calculatePrice($s->price,$journey->rv->marge,$s->currency,$journey->marge,true)." ";
396                     if($s->priceIsTotal == 1)
397                         echo Yii::t('rv','price_total');
398                     else
399                         echo Yii::t('rv','per_person');
400                     echo "<br/>";

Stack Trace

#4
+
 /www/htdocs/w00ec255/colibri-travel/protected/controllers/TripsController.php(1435): CController->render("book", array("journey" => Journey, "model" => JourneyRequest, "customer" => Customer))
1430         }
1431 
1432         $this->render('book', array(
1433             'journey' => $journey,
1434             'model' => $model,
1435             'customer' => $customer,
1436         ));
1437     }
1438 
1439     public function actionFrage()
1440     { 
#14
+
 /www/htdocs/w00ec255/colibri-travel/index.php(18): CApplication->run()
13 defined('YII_DEBUG') or define('YII_DEBUG',true);
14 // specify how many levels of call stack should be shown in each log message
15 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
16 
17 require_once($yii);
18 Yii::createWebApplication($config)->run();
2024-03-29 10:33:51 Apache Yii Framework/1.1.10