CC-2483:Cron task shouldn't output anything

-fixed
This commit is contained in:
james 2011-06-29 15:32:50 -04:00
parent ca240422f7
commit e048ee548b
1 changed files with 4 additions and 4 deletions

View File

@ -43,16 +43,16 @@ set_include_path($CC_CONFIG['phpDir'].'/library/pear' . PATH_SEPARATOR . get_inc
require_once('DB.php'); require_once('DB.php');
$CC_DBC = DB::connect($CC_CONFIG['dsn'], FALSE); $CC_DBC = DB::connect($CC_CONFIG['dsn'], FALSE);
if (PEAR::isError($CC_DBC)) { if (PEAR::isError($CC_DBC)) {
echo $CC_DBC->getMessage().PHP_EOL; /*echo $CC_DBC->getMessage().PHP_EOL;
echo $CC_DBC->getUserInfo().PHP_EOL; echo $CC_DBC->getUserInfo().PHP_EOL;
echo "Database connection problem.".PHP_EOL; echo "Database connection problem.".PHP_EOL;
echo "Check if database '{$CC_CONFIG['dsn']['database']}' exists". echo "Check if database '{$CC_CONFIG['dsn']['database']}' exists".
" with corresponding permissions.".PHP_EOL; " with corresponding permissions.".PHP_EOL;*/
if ($p_exitOnError) { if ($p_exitOnError) {
exit(1); exit(1);
} }
} else { } else {
echo "* Connected to database".PHP_EOL; //echo "* Connected to database".PHP_EOL;
$CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC); $CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC);
} }
if(Application_Model_Preference::GetSupportFeedback() == '1'){ if(Application_Model_Preference::GetSupportFeedback() == '1'){