Changeset 1055

Show
Ignore:
Timestamp:
04/28/2008 11:59:08 PM (2 years ago)
Author:
DotMG
Message:

fixes #742

Testing if $this is defined before using it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1.6.5/libs/Wakka.class.php

    r1047 r1055  
    13081308                // init 
    13091309                $count = 0; 
    1310                 $table_prefix = (empty($prefix)) ? $this->config['table_prefix'] : $prefix; 
     1310                $table_prefix = (empty($prefix) && isset($this)) ? $this->config['table_prefix'] : $prefix; 
    13111311                if (is_null($dblink)) 
    13121312                {