mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-11 19:18:46 +00:00
Update extensions.php
This commit is contained in:
@@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user