[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [bug #4059] Not object or array error in soprojec

From: nobody
Subject: [Phpgroupware-tracker] [bug #4059] Not object or array error in soprojects
Date: Tue, 24 Jun 2003 07:58:22 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

=================== BUG #4059: LATEST MODIFICATIONS ==================

Changes by: Bettina Gille <address@hidden>
Date: Tue 06/24/2003 at 11:58 (GMT)

            What     | Removed                   | Added
          Resolution | None                      | Fixed
              Status | Open                      | Closed

=================== BUG #4059: FULL BUG SNAPSHOT ===================

Submitted by: dhouston                Project: phpGroupWare                 
Submitted on: Fri 06/20/2003 at 19:13
Category:  projects                   Bug Group:  devel cvs                 
Severity:  5 - Major                  Priority:  None                       
Resolution:  Fixed                    Assigned to:  None                    
Status:  Closed                       Component Version:  None              
Platform Version:  None               Reproducibility:  Intermittent        

Summary:  Not object or array error in soprojects

Original Submission:  In 9.14.506, I had a user try to update an existing 
project and get:

Warning: Variable passed to each() is not an array or object in 
/var/www/groupware/projects/inc/ on line 335

When I looked at the section in question (the last if-block in the edit_project 
function), I found:

if (count($bill_activities) != 0)

It turns out that there were no billable activities selected for the project 
she was editing.  I changed the if line to:

if (sizeof($bill_activities) != 0 && is_array($bill_activities))

And it worked like a charm. My line numbers may not match up with src line 
numbers thanks to customizations I've done.

No Followups Have Been Posted

CC list is empty

No files currently attached

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]