[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14061]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [14061] |
Date: |
Tue, 29 Sep 2015 22:47:35 +0000 |
Revision: 14061
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14061
Author: nelson224
Date: 2015-09-29 22:47:34 +0000 (Tue, 29 Sep 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/inc/class.uiresultunit.inc.php
Modified: branches/dev-syncromind/rental/inc/class.uiresultunit.inc.php
===================================================================
--- branches/dev-syncromind/rental/inc/class.uiresultunit.inc.php
2015-09-29 22:46:53 UTC (rev 14060)
+++ branches/dev-syncromind/rental/inc/class.uiresultunit.inc.php
2015-09-29 22:47:34 UTC (rev 14061)
@@ -283,24 +283,23 @@
if($account_id)
{
$search_result =
frontend_bofrontend::get_account_info($account_id);
- $result['message']['msg'] =
lang('user_found_in_PE');
+ $msg = lang('user_found_in_PE');
}
else
{
- $fellesdata_user =
frontend_bofellesdata::get_instance()->get_user($username);
- if($fellesdata_user)
- {
- $search_result =
$fellesdata_user;
- $result['message']['msg'] =
lang('user_found_in_Fellesdata');
- }
- else
- {
- $result['error']['msg'] =
lang('no_hits');
- }
+ $search_result =
frontend_bofellesdata::get_instance()->get_user($username);
+ $msg = lang('user_found_in_Fellesdata');
}
+
+ if ($search_result)
+ {
+ $result['message']['msg'] = $msg;
+ $result['data'] = $search_result;
+ } else {
+ $result['error']['msg'] =
lang('no_hits');
+ }
}
- $result['data'] = $search_result;
-
+
return $result;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14061],
Nelson Guerra <=