Commit r2371: https://sourceforge.net/p/mrbs/code/2371/
------------------------------------------------------------------------
r2371 | cimorrison | 2012-08-10 15:47:00 +0100 (Fri, 10 Aug 2012) | 1 line
Changed paths:
M /mrbs/trunk/web/mrbs_sql.inc
Changed error level from WARNING to NOTICE when an entry isn't found, as this
will happen quite legitimately if somebody else has deleted or edited an entry
while you were looking at it.
------------------------------------------------------------------------
Index: mrbs/trunk/web/mrbs_sql.inc
===================================================================
--- mrbs/trunk/web/mrbs_sql.inc (revision 2370)
+++ mrbs/trunk/web/mrbs_sql.inc (revision 2371)
@@ -1137,7 +1137,9 @@
if (sql_count($res) < 1)
{
- trigger_error("No rows found matching id=$id", E_USER_WARNING);
+ // It's quite possible that the id will have disappeared, eg if somebody
+ // else has deleted or edited the entry
+ trigger_error("No rows found matching id=$id", E_USER_NOTICE);
if ($silent)
{
return FALSE;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits