]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
better usage of 'limit' in cases where this is irrelevant
authorJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:29:14 +0000 (14:29 +0200)
committerJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:29:14 +0000 (14:29 +0200)
engine/lib/deprecated-1.8.php
engine/lib/notification.php
mod/groups/start.php
mod/notifications/actions/groupsave.php
mod/notifications/groups.php
mod/notifications/index.php
mod/notifications/views/default/forms/notificationsettings/groupsave.php
mod/notifications/views/default/notifications/subscriptions/forminternals.php

index 033af90fde8a9c0d3fc2f4b996437a4a38173556..2b4ffcc4f0fe78147aec4e408a6500886834e300 100644 (file)
@@ -2568,7 +2568,7 @@ $owner_guid = "", $owner_relationship = "") {
                                'inverse_relationship' => FALSE,
                                'type' => 'user',
                                'subtype' => $subtype,
-                               'limit' => 9999))
+                               'limit' => false))
                        ) {
 
                                $friendsarray = array();
index 7382955884af19191e983a7142c4ec20df84b211..20e32ae55116b35c0fd76a6e244afcb4cbd05d0e 100644 (file)
@@ -492,7 +492,7 @@ function object_notifications($event, $object_type, $object) {
                                        'relationship_guid' => $object->container_guid,
                                        'inverse_relationship' => TRUE,
                                        'type' => 'user',
-                                       'limit' => 99999
+                                       'limit' => false
                                ));
 
                                if ($interested_users && is_array($interested_users)) {
index 9689802eb30cb30dc771c48684c9bc5255bf7d0d..6bdf04d2b47cf8f0548c4ba15577fe348681ac19 100644 (file)
@@ -538,7 +538,7 @@ function groups_write_acl_plugin_hook($hook, $entity_type, $returnvalue, $params
                                        'relationship' => 'member',
                                        'relationship_guid' => $user_guid,
                                        'inverse_relationship' => FALSE,
-                                       'limit' => 999
+                                       'limit' => false
                                ));
 
                if ($groups) {
index c646c188571fe1f529f71996e8bc07b7a29ca71f..d77af41cc542a8319856398eb87a1c83e5d9b5d5 100644 (file)
@@ -22,7 +22,7 @@ $options = array(
        'relationship' => 'member',
        'relationship_guid' => $user->guid,
        'type' => 'group',
-       'limit' => 9999,
+       'limit' => false,
 );
 if ($groupmemberships = elgg_get_entities_from_relationship($options)) {
        foreach($groupmemberships as $groupmembership) {
index d29c43e1f99bdd735959be3629e02094e2cfa6b2..973f3493ca6fbc5c4efb336a9de02cc9484cae2e 100644 (file)
@@ -29,7 +29,7 @@ $groupmemberships = elgg_get_entities_from_relationship(array(
        'relationship' => 'member',
        'relationship_guid' => $user->guid,
        'type' => 'group',
-       'limit' => 9999,
+       'limit' => false,
 ));
 
 $body = elgg_view_form('notificationsettings/groupsave', array(), array(
index ff03cb274751943955ecd962e4c3907358a4a684..a99622efd626c2c8e5bb576b0e05afee9d7df41d 100644 (file)
@@ -28,7 +28,7 @@ if ($people_ents = elgg_get_entities_from_relationship(array(
                'relationship' => 'notify',
                'relationship_guid' => $user->guid,
                'type' => 'user',
-               'limit' => 99999,
+               'limit' => false,
        ))) {
        
        foreach($people_ents as $ent) {
index 64db8f5339fab08d77fe099ac28f7e2779519a30..f3e5f693a71bcf579fc66b769c54b5f0bd4094ef 100644 (file)
@@ -16,7 +16,7 @@ foreach ($NOTIFICATION_HANDLERS as $method => $foo) {
                'relationship' => 'notify' . $method,
                'relationship_guid' => $user->guid,
                'type' => 'group',
-               'limit' => 99999,
+               'limit' => false,
        ));
        $tmparray = array();
        if ($subsbig[$method]) {
index 57fa62405a5b3c3b2bcf63fd230fc50adb7a77c9..79a7959ac6456259567aeb641453ecf6f8be8857 100644 (file)
@@ -32,7 +32,7 @@ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
                'relationship' => 'notify' . $method,
                'relationship_guid' => $user->guid,
                'type' => 'user',
-               'limit' => 99999,
+               'limit' => false,
        ));
 }