Subversion Repositories oidplus

Rev

Rev 1316 | Rev 1454 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1316 Rev 1445
Line 124... Line 124...
124
 
124
 
125
                if (is_array($goto_path)) array_shift($goto_path);
125
                if (is_array($goto_path)) array_shift($goto_path);
126
 
126
 
127
                $res = OIDplus::db()->query("select * from ###objects where parent = ?", array($parent));
127
                $res = OIDplus::db()->query("select * from ###objects where parent = ?", array($parent));
128
                $res->naturalSortByField('id');
128
                $res->naturalSortByField('id');
-
 
129
                $max_ent = 0;
129
                while ($row = $res->fetch_array()) {
130
                while ($row = $res->fetch_array()) {
-
 
131
                        $max_ent++;
-
 
132
                        if ($max_ent > 1000) break; // TODO: we need a solution for this!!!
130
                        $obj = OIDplusObject::parse($row['id']);
133
                        $obj = OIDplusObject::parse($row['id']);
131
                        if (!$obj) continue; // e.g. object-type plugin disabled
134
                        if (!$obj) continue; // e.g. object-type plugin disabled
132
 
135
 
133
                        if (!$obj->userHasReadRights()) continue;
136
                        if (!$obj->userHasReadRights()) continue;
134
 
137