Error in PHP Script
/index.php
PHP Version: 5.2.5;  Zend Engine Version: 2.2.0;  Qcodo Version: 0.3.21 (Qcodo Beta 3)
Application: Apache/2.2.3 (Linux/SUSE);  Server Name: www.kbnn.no
HTTP User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
ksort() expects parameter 1 to be array, null given
Error Type:   E_WARNING

Rendered Page:   Click here to view contents able to be rendered

Source File:   /home/sites/demosite.box3.prosjektweb.net/felles/publisering/side.php     Line:   291

Line 286:    			$arrNyheter = Nyhet::QueryArray(QQ::LessOrEqual(QQN::Nyhet()->Tid,new QDateTime(QDateTime::Now)));
Line 287:    			foreach ($arrNyheter as $objNyhetMeny) $arrNyhetsmeny[$objNyhetMeny->Tid->PHPDate('Y')][$objNyhetMeny->Tid->PHPDate('n')] = true;
Line 288:    
Line 289:    			if(count($arrNyhetsmeny[$intCurrentYear]) == 0) $intCurrentYear = date('Y') - 1;
Line 290:    			
Line 291:    			ksort($arrNyhetsmeny[$intCurrentYear]);
Line 292:    			$intManedNummer = 0;
Line 293:    			$intCurrentMonth = 1;
Line 294:    			$intAntallManeder = count($arrNyhetsmeny[$intCurrentYear]);
Line 295:    			foreach ($arrNyhetsmeny[$intCurrentYear] as $intManed => $blnTull){
Line 296:    				$intManedNummer++;

Call Stack:

#0 (): QcodoHandleError()
#1 /home/sites/demosite.box3.prosjektweb.net/felles/publisering/side.php(291): ksort()
#2 /home/sites/kbnn.no/custom/_core/querystring.php(75): LastFraNyhetskomponent()
#3 /home/sites/demosite.box3.prosjektweb.net/felles/_core/querystring.class.php(128): CustomQuerystring()
#4 /home/sites/demosite.box3.prosjektweb.net/felles/_core/querystring.class.php(37): Querystring->KjorKommando()
#5 /home/sites/demosite.box3.prosjektweb.net/felles/_core/init_page.php(66): Querystring->__construct()
#6 /home/sites/kbnn.no/index.php(7): require_once()

Variable Dump:   Show/Hide



Error Report Generated:  Sunday, February 5 2012, 5:31:01 PM