fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6854] Because of a hard-to-find error, a line was ad


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6854] Because of a hard-to-find error, a line was added that throws and exception when the userid is not set ( otherwise the sql will fail)
Date: Thu, 27 Jan 2011 08:17:33 +0000

Revision: 6854
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6854
Author:   peturbjorn
Date:     2011-01-27 08:17:32 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Because of a hard-to-find error, a line was added that throws and exception 
when the userid is not set (otherwise the sql will fail)

Modified Paths:
--------------
    branches/dev-bim2/phpgwapi/inc/class.vfs_shared.inc.php

Modified: branches/dev-bim2/phpgwapi/inc/class.vfs_shared.inc.php
===================================================================
--- branches/dev-bim2/phpgwapi/inc/class.vfs_shared.inc.php     2011-01-27 
08:16:17 UTC (rev 6853)
+++ branches/dev-bim2/phpgwapi/inc/class.vfs_shared.inc.php     2011-01-27 
08:17:32 UTC (rev 6854)
@@ -214,6 +214,9 @@
                {
                        $this->basedir = 
$GLOBALS['phpgw_info']['server']['files_dir'];
                        $this->working_id = 
$GLOBALS['phpgw_info']['user']['account_id'];
+                       if(empty($this->working_id)) {
+                               throw new Exception("VFS error! Missing user 
id!");
+                       }
                        $this->working_lid = 
$GLOBALS['phpgw_info']['user']['account_lid'];
                        $this->now = date ('Y-m-d');
                        /* These are stored in the MIME-type field and should 
normally 




reply via email to

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