mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Errors/Logging
* log addNotes to DB as php user-errors * always skip the native php error handler
This commit is contained in:
@@ -190,7 +190,7 @@ class CommunityContent
|
||||
}
|
||||
else
|
||||
{
|
||||
Util::addNote(U_GROUP_STAFF, 'CommunityClass::getCommentPreviews - comment '.$c['id'].' belongs to nonexistant subject');
|
||||
Util::logError('Comment '.$c['id'].' belongs to nonexistant subject.', E_USER_NOTICE);
|
||||
unset($comments[$idx]);
|
||||
}
|
||||
}
|
||||
@@ -341,7 +341,7 @@ class CommunityContent
|
||||
{
|
||||
if (empty($p['name']))
|
||||
{
|
||||
Util::addNote(U_GROUP_STAFF | U_GROUP_SCREENSHOT, 'AdminPage::handleScreenshots() - Screenshot linked to nonexistant type/typeId combination '.$p['type'].'/'.$p['typeId']);
|
||||
Util::logError('Screenshot linked to nonexistant type/typeId combination: '.$p['type'].'/'.$p['typeId'], E_USER_NOTICE);
|
||||
unset($p);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user