[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16904] typo
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16904] typo |
Date: |
Tue, 4 Jul 2017 05:07:49 -0400 (EDT) |
Revision: 16904
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16904
Author: sigurdne
Date: 2017-07-04 05:07:48 -0400 (Tue, 04 Jul 2017)
Log Message:
-----------
typo
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-07-04 09:00:15 UTC (rev
16903)
+++ trunk/frontend/inc/class.bofrontend.inc.php 2017-07-04 09:07:48 UTC (rev
16904)
@@ -328,7 +328,7 @@
*/
public static function remove_delegate( int $account_id, int
$owner_id, int $org_unit_id )
{
- if (!isset($owner_id))
+ if (empty($owner_id))
{
$owner_id =
$GLOBALS['phpgw_info']['user']['account_id'];
}
@@ -335,10 +335,9 @@
// The location
$location_id =
$GLOBALS['phpgw']->locations->get_id('frontend', '.');
- ;
// If a specific organisational unit
- if (isset($org_unit_id))
+ if ($org_unit_id)
{
$sql = "DELETE FROM phpgw_account_delegates
WHERE account_id = {$account_id} AND data = '{$org_unit_id}' AND location_id =
{$location_id}";
}
Modified: trunk/frontend/inc/class.uidelegates.inc.php
===================================================================
--- trunk/frontend/inc/class.uidelegates.inc.php 2017-07-04 09:00:15 UTC
(rev 16903)
+++ trunk/frontend/inc/class.uidelegates.inc.php 2017-07-04 09:07:48 UTC
(rev 16904)
@@ -247,9 +247,9 @@
public function remove_delegate()
{
$account_id = phpgw::get_var('account_id');
- $owner_id = phpgw::get_var('owner_id');
+ $owner_id = (int)phpgw::get_var('owner_id');
- frontend_bofrontend::remove_delegate($account_id,
$owner_id);
+ frontend_bofrontend::remove_delegate($account_id,
$owner_id, 0);
$GLOBALS['phpgw']->redirect_link('/index.php',
array('menuaction' => 'frontend.uidelegates.index'));
}
}
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16904] typo,
sigurdne <=