ErrorException [ Notice ]: Trying to access array offset on value of type null

/home/server069961/ftp/migracja/sungrey.net/maestato.com/en/common/classes/model/texts.php [ 8 ]

 3 class Model_Texts extends Model_Database {
 4 	public function get($id)
 5 	{
 6 		$q = DB::select()->from('texts')->where('id','=',$id)->execute()->current();
 7 
 8 		return unserialize($q['contents']);
 9 	}
10 
11 	public function insert($id, $contents)
12 	{
13 		$query = DB::insert('texts', array('id', 'contents'))->values(array($id, $contents))->execute();
  1. /home/server069961/ftp/migracja/sungrey.net/maestato.com/en/common/classes/model/texts.php [ 8 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/projects/home.php [ 2 ] » Model_Texts->get(arguments)

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

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

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

  6. APPPATH/views/template.php [ 139 ] » Kohana_View->__toString()

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

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

  9. SYSPATH/classes/kohana/controller/template.php [ 44 ] » Kohana_View->render()

  10. APPPATH/classes/controller/site.php [ 37 ] » Kohana_Controller_Template->after()

  11. {PHP internal call} » Controller_Site->after()

  12. SYSPATH/classes/kohana/request/client/internal.php [ 119 ] » ReflectionMethod->invoke(arguments)

  13. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  14. SYSPATH/classes/kohana/request.php [ 1164 ] » Kohana_Request_Client->execute(arguments)

  15. SYSPATH/init.php [ 109 ] » Kohana_Request->execute()

  16. /home/server069961/ftp/migracja/sungrey.net/maestato.com/en/index.php [ 12 ] » require_once(arguments)

Environment



Partners