[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17338] frontendt: php7 related fix
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [17338] frontendt: php7 related fix |
Date: |
Tue, 21 Nov 2017 07:06:54 -0500 (EST) |
Revision: 17338
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17338
Author: sigurdne
Date: 2017-11-21 07:06:54 -0500 (Tue, 21 Nov 2017)
Log Message:
-----------
frontendt: php7 related fix
Modified Paths:
--------------
trunk/frontend/inc/class.bofrontend.inc.php
trunk/frontend/inc/class.uidelegates.inc.php
Modified: trunk/frontend/inc/class.bofrontend.inc.php
===================================================================
--- trunk/frontend/inc/class.bofrontend.inc.php 2017-11-21 12:06:24 UTC (rev
17337)
+++ trunk/frontend/inc/class.bofrontend.inc.php 2017-11-21 12:06:54 UTC (rev
17338)
@@ -207,7 +207,7 @@
{
// The location
$location_id =
$GLOBALS['phpgw']->locations->get_id('frontend', '.');
- ;
+
$owner_id = isset($owner_id) ? $owner_id :
$GLOBALS['phpgw_info']['user']['account_id'];
// If a specific organisational unit is chosen
Modified: trunk/frontend/inc/class.uidelegates.inc.php
===================================================================
--- trunk/frontend/inc/class.uidelegates.inc.php 2017-11-21 12:06:24 UTC
(rev 17337)
+++ trunk/frontend/inc/class.uidelegates.inc.php 2017-11-21 12:06:54 UTC
(rev 17338)
@@ -241,7 +241,10 @@
return false;
}
}
- return frontend_bofrontend::add_delegate($account_id,
null, $org_unit_id, $org_name);
+
+ $owner_id = (int)
$GLOBALS['phpgw_info']['user']['account_id'];
+
+ return frontend_bofrontend::add_delegate($account_id,
$owner_id, $org_unit_id, $org_name);
}
public function remove_delegate()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17338] frontendt: php7 related fix,
sigurdne <=