aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/system_log.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:53:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:53:43 +0000
commit3736bc66532e3f506c62bf6edf8d98c029cd0713 (patch)
tree895574b7e9f3372aeb69c0f0b72234ab8b12e11e /engine/lib/system_log.php
parent3050d4aba881ffb2d6904b2e8e7054c2566d2de2 (diff)
downloadelgg-3736bc66532e3f506c62bf6edf8d98c029cd0713.tar.gz
elgg-3736bc66532e3f506c62bf6edf8d98c029cd0713.tar.bz2
Fixes #121 and #143. Please confirm.
git-svn-id: https://code.elgg.org/elgg/trunk@1717 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/system_log.php')
-rw-r--r--engine/lib/system_log.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index de80f09d5..0c382df53 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -64,7 +64,8 @@
function get_system_log($by_user = "", $event = "", $class = "", $limit = 10, $offset = 0, $count = false)
{
global $CONFIG;
-
+
+ $by_user_orig = $by_user;
if (is_array($by_user) && sizeof($by_user) > 0) {
foreach($by_user as $key => $val) {
$by_user[$key] = (int) $val;
@@ -79,10 +80,13 @@
$where = array();
- if (is_int($by_user) && $by_user > 0) {
- $where[] = "performed_by_guid=$by_user";
- } else if (is_array($by_user)) {
- $where [] = "performed_by_guid in (". implode(",",$by_user) .")";
+ if ($by_user_orig!=="")
+ {
+ if (is_int($by_user)) {
+ $where[] = "performed_by_guid=$by_user";
+ } else if (is_array($by_user)) {
+ $where [] = "performed_by_guid in (". implode(",",$by_user) .")";
+ }
}
if ($event != "")
$where[] = "event='$event'";