Update extensions.php

This commit is contained in:
Nate 2019-11-02 21:12:12 -06:00
parent b986fa0415
commit 705a01eb7a
1 changed files with 4 additions and 4 deletions

View File

@ -191,7 +191,7 @@
echo "</td>\n";
echo "</tr>\n";
if (is_array($extensions)) {
if (is_array($extensions) && @sizeof($extensions) != 0) {
foreach($extensions as $row) {
if (permission_exists('extension_edit')) {
$tr_link = "href='extension_edit.php?id=".urlencode($row['extension_uuid']).(is_numeric($page) ? '&page='.$page : null)."'";
@ -264,7 +264,7 @@
}
}
if (is_array($extensions)) {
if (is_array($extensions) && @sizeof($extensions) != 0) {
echo "<tr>\n";
echo " <td colspan='20' class='list_control_icons'>\n";
if (permission_exists('extension_add')) {
@ -292,7 +292,7 @@
echo "<br /><br />".((is_array($extensions)) ? "<br /><br />" : null);
// check or uncheck all checkboxes
if (sizeof($ext_ids) > 0) {
if (is_array($ext_ids) && @sizeof($ext_ids) != 0) {
echo "<script>\n";
echo " function check(what) {\n";
echo " document.getElementById('chk_all').checked = (what == 'all') ? true : false;\n";
@ -314,4 +314,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>