Revision: 19034
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19034
Author: Caeies
Date: 2009-01-21 18:18:14 +0000 (Wed, 21 Jan 2009)
Log Message:
-----------
Throw an exception if the get_id should be returning 0 -> means a specific case
: either programming error, or an error that should be catched due to missing
location acl
Modified Paths:
--------------
core/trunk/phpgwapi/inc/class.locations.inc.php
Modified: core/trunk/phpgwapi/inc/class.locations.inc.php
===================================================================
--- core/trunk/phpgwapi/inc/class.locations.inc.php 2009-01-21 18:12:53 UTC
(rev 19033)
+++ core/trunk/phpgwapi/inc/class.locations.inc.php 2009-01-21 18:18:14 UTC
(rev 19034)
@@ -190,6 +190,7 @@
{
return (int) $this->_db->f('location_id');
}
+ throw new Exception("get_id (${appname}, ${location})
returned 0");
return 0;
}
_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs