]> git.mjollnir.org Git - s9y.git/commitdiff
Increase bodycount ;)
authorgarvinhicking <garvinhicking>
Thu, 4 Aug 2005 12:56:30 +0000 (12:56 +0000)
committergarvinhicking <garvinhicking>
Thu, 4 Aug 2005 12:56:30 +0000 (12:56 +0000)
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php

index 36da2ebd08e62629656ffe8349a1c7ac266abf34..b306459fd7d6cf8f8bee802a05fb2bedd0e4406d 100644 (file)
@@ -490,7 +490,7 @@ class serendipity_event_entryproperties extends serendipity_event
                             foreach((array)$mygroups AS $mygroup) {
                                 $groupcond[] .= "ep_access_groups.value LIKE '%;$mygroup;%'";
                             }
-                            if (count($groupcond) > 1) {
+                            if (count($groupcond) > 0) {
                                 $conds[] = " (ep_access_groups.property IS NULL OR (ep_access.value = 'member' AND (" . implode(' OR ', $groupcond) . ")))";
                             }
                         }
@@ -499,7 +499,7 @@ class serendipity_event_entryproperties extends serendipity_event
                             $conds[] = " (ep_access_users.property IS NULL OR (ep_access.value = 'member' AND (ep_access_users.value LIKE '%;" . (int)$serendipity['authorid'] . ";%' OR e.authorid = " . (int)$serendipity['authorid'] . "))) ";
                         }
                     } else {
-                        $conds[] = " (ep_access.property IS NULL OR ep_access.value = 'public') ";
+                        $conds[] = " (ep_access.property IS NULL OR ep_access.value = 'public')";
                     }
 
                     if (!isset($serendipity['GET']['category']) && !isset($serendipity['GET']['adminModule']) && $event == 'frontend_fetchentries') {