phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19034] Throw an exception if the get_id should be re


From: Caeies
Subject: [Phpgroupware-cvs] [19034] 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
Date: Wed, 21 Jan 2009 18:18:16 +0000

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;
                }
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]