Skip to content

Commit

Permalink
suppress error messages from _debug()
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@160 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Oct 20, 2011
1 parent 9b66746 commit 4a57be9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.php
Expand Up @@ -32,13 +32,13 @@
function _debug($string) {
global $development;
if(isset($development) && $development) {
file_put_contents('/tmp/debug.log', date('Y-m-d H:i:s ') . $string . "\n", FILE_APPEND);
// yes, we really don't want to report file write errors if this doesn't work.
@file_put_contents('/tmp/debug.log', date('Y-m-d H:i:s ') . $string . "\n", FILE_APPEND);
}
}
}

if(!isset($xerte_toolkits_site)){

if(!isset($xerte_toolkits_site)) {
session_start();
// create new generic object to hold all our config stuff in....
$xerte_toolkits_site = new StdClass();
Expand Down

0 comments on commit 4a57be9

Please sign in to comment.