PHP Classes

Argument not an array

Recommend this page to a friend!

      cjEvents  >  All threads  >  Argument not an array  >  (Un) Subscribe thread alerts  
Subject:Argument not an array
Summary:array_unshift($args, $eventname); doesn't appear as array
Messages:1
Author:Carl Friis-Hansen
Date:2010-09-06 00:01:52
 

  1. Argument not an array   Reply   Report abuse  
Picture of Carl Friis-Hansen Carl Friis-Hansen - 2010-09-06 00:01:52
I just wanted to checkout your great class cjEvents and noticed that when using test_prototype.html or test_jquery.html the reply always appear in line with button 2.
Looking at the error log, I get this:
///////////////////////////////////////////////////////////////////
[06-Sep-2010 01:01:57] PHP Warning: array_unshift() [<a href='function.array-unshift'>function.array-unshift</a>]: The first argument should be an array in /home/computin/public_html/event/event.php on line 53
[06-Sep-2010 01:01:57] PHP Warning: Invalid argument supplied for foreach() in /home/computin/public_html/event/event.php on line 76
///////////////////////////////////////////////////////////////////
On the host side I am using:
centOS, PHP5 and all files from cjevents-2010-08-25.tar.gz

On the client side I a using:
Ubuntu 10.04 and FireFox 3.6.8

I am going to bed now, kind of sleepy, but would like to hear if I have misunderstood something.

 
For more information send a message to info at phpclasses dot org.