Rev 1445 | Rev 1454 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1445 | Rev 1449 | ||
---|---|---|---|
Line 1426... | Line 1426... | ||
1426 | 1426 | ||
1427 | $rows = array(); |
1427 | $rows = array(); |
1428 | $max_ent = 0; |
1428 | $max_ent = 0; |
1429 | while ($row = $result->fetch_object()) { |
1429 | while ($row = $result->fetch_object()) { |
1430 | $max_ent++; |
1430 | $max_ent++; |
1431 | if ($max_ent > 1000) return _L('There are too many child items to display'); // TODO: we need to find a solution for this!!! |
1431 | if ($max_ent > 1000) break; // TODO: we need to find a solution for this!!! |
1432 | $obj = OIDplusObject::parse($row->id); |
1432 | $obj = OIDplusObject::parse($row->id); |
1433 | if ($obj) $rows[] = array($obj,$row); |
1433 | if ($obj) $rows[] = array($obj,$row); |
1434 | } |
1434 | } |
1435 | 1435 | ||
1436 | $enable_weid_presentation = OIDplus::config()->getValue('oid_grid_show_weid'); |
1436 | $enable_weid_presentation = OIDplus::config()->getValue('oid_grid_show_weid'); |
Line 1594... | Line 1594... | ||
1594 | $output .= '<p>'._L('One item is hidden. Please <a %1>log in</a> to see it.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>'; |
1594 | $output .= '<p>'._L('One item is hidden. Please <a %1>log in</a> to see it.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>'; |
1595 | } else if ($items_hidden > 1) { |
1595 | } else if ($items_hidden > 1) { |
1596 | $output .= '<p>'._L('%1 items are hidden. Please <a %2>log in</a> to see them.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>'; |
1596 | $output .= '<p>'._L('%1 items are hidden. Please <a %2>log in</a> to see them.',$items_hidden,OIDplus::gui()->link('oidplus:login')).'</p>'; |
1597 | } |
1597 | } |
1598 | 1598 | ||
- | 1599 | if ($max_ent > 1000) $output .= '<p>'._L('There are too many child items to display') . '</p>'; // TODO: we need to find a solution for this!!! |
|
- | 1600 | ||
1599 | return $output; |
1601 | return $output; |
1600 | } |
1602 | } |
1601 | 1603 | ||
1602 | /** |
1604 | /** |
1603 | * @param string $html |
1605 | * @param string $html |