Re: Odd Problems with Comments

Matthew Leingang <leingang-c2Vpf+SSmYbWs/[email protected]> Tue, 21 Oct 2003 11:57:27 -0400
Newsgroups gmane.comp.cms.phpslash.devel
Organization Harvard University Department of Mathematics
Message-ID <[email protected]>
On Tue, 2003-10-21 at 09:09, Mike Gifford wrote:
> Hi Folks,
Hi!

> This is a Back-End problem using psl code.  I just had one of my users
> check out psl 7.2 on their server and it is working just fine.  The BE
> comment code is based on psl 0.7.1.
> 
> The problem is that in posting comments to the poll or to articles the
> user gets a very, very long string of errors:

You mean a very, very long string of warnings, don't you? :-)

> > > The comment function which gives
> > > the following error on a loop with about 1138 entries
> > > when previewing or posting:-
> > > --------------
> > > Warning: Invalid argument supplied for foreach() in
> > > /home/harbour/class/lib.resources.php on line 343
> > > --------------
> 
> This refers to the following foreach in the lib.resources.php
> 
> >       foreach($requirements as $req) {

You might could change this to 
          foreach((array)$requirements as $req) {

See if that works.

--Matt

-- 
Matthew Leingang
Harvard University Department of Mathematics
leingang-c2Vpf+SSmYbWs/[email protected]



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54