Changeset 7912

Show
Ignore:
Timestamp:
08/02/09 21:44:47 (4 years ago)
Author:
p_lindheimer
Message:

allow freepbx_debug to print objects also

Files:

Legend:

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

    r7808 r7912  
    35963596function freepbx_debug($string, $option='a', $filename='/tmp/freepbx_debug.log') { 
    35973597  $fh = fopen($filename,$option); 
    3598   if (is_array($string)) { 
     3598  if (is_array($string) || is_object($string)) { 
    35993599    fwrite($fh,print_r($string,true)."\n"); 
    36003600  } else {