Changeset 16146


Ignore:
Timestamp:
06/28/12 20:45:51 (7 years ago)
Author:
mistic100
Message:

check if ilog() exists before using it, allowing the use the class outer i.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/image.class.php

    r16076 r16146  
    626626    @exec($exec, $returnarray); 
    627627 
    628     ilog($exec); 
     628    if (function_exists('ilog')) ilog($exec); 
    629629    if (is_array($returnarray) && (count($returnarray)>0) ) 
    630630    { 
    631       ilog('ERROR', $returnarray); 
     631      if (function_exists('ilog')) ilog('ERROR', $returnarray); 
    632632      foreach($returnarray as $line) 
    633633        trigger_error($line, E_USER_WARNING); 
Note: See TracChangeset for help on using the changeset viewer.