ErrorException [ Warning ]: number_format() expects parameter 1 to be double, string given

APPPATH/classes/model/objekt.php [ 318 ]

313 	public function lm_cena($mena = MENA){
314 		if(!isset($this->_lm_cena)){
315 	  	$this->_lm_cena = Model_Termin::lm_cena($this->AKKO0, $mena);
316 		}
317 
318     return number_format($this->_lm_cena, 0, '', '.');
319 	}
320 	
321 	public function koupani(){
322 		if(!isset($this->_koupani)){
323 		  switch(LANG){
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/model/objekt.php [ 318 ] » number_format(arguments)

  3. APPPATH/views/include/vypis_objektu.php [ 39 ] » Model_Objekt->lm_cena()

  4. APPPATH/views/seznam_objektu.php [ 20 ] » include(arguments)

  5. APPPATH/views/index.php [ 309 ] » include(arguments)

  6. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  9. APPPATH/bootstrap.php [ 367 ] » Kohana_View->__toString()

  10. DOCROOT/index.php [ 103 ] » require(arguments)

Environment