Changeset 6675

Show
Ignore:
Timestamp:
09/09/08 14:32:14 (3 months ago)
Author:
p_lindheimer
Message:

tweak on freepbx_debug function to easily write out arrays

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/admin/functions.inc.php

    r6601 r6675  
    35843584function freepbx_debug($string, $option='a', $filename='/tmp/freepbx_debug.log') { 
    35853585        $fh = fopen($filename,$option); 
    3586         fwrite($fh,$string."\n"); 
     3586        if (is_array($string)) { 
     3587                fwrite($fh,print_r($string,true)."\n"); 
     3588        } else { 
     3589                fwrite($fh,$string."\n"); 
     3590        } 
    35873591        fclose($fh); 
    35883592} 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads