collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: something is wrong  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
something is wrong
« on: August 17, 2007, 05:34:00 am »
im working on this module and i have no idea why tts doing this

even when there is data in $this -> $id
Line 439
Code: [Select]
if(!empty($this -> $id))
{
doesnt work

as when there isnt data in this
Line 312
Code: [Select]
if (!empty($this -> online));
{
foreach($this -> online as $sort)
i still calls , and i end up with
Quote
Warning: Invalid argument supplied for foreach() in /home/Bots/all/Botetes/modules/OnlineOrg.php on line 314

Entire Code is here, but its abit messy at the moment :p
http://rafb.net/p/dixDUk56.html

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: something is wrong
« Reply #1 on: August 17, 2007, 03:03:00 pm »
Found 1st bug,
just dont know why  if (!empty($this -> online)); isnt skiped when empty

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: something is wrong
« Reply #2 on: August 17, 2007, 04:43:14 pm »
Remove the semi-colon at the end of the "if" line

Code: [Select]
if (!empty($this -> online))
{
foreach($this...
« Last Edit: August 17, 2007, 04:48:27 pm by Snarfblatt »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: something is wrong
« Reply #3 on: August 17, 2007, 06:48:47 pm »
bah cant believe i missed that!
thank you

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 401
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal