diff options
author | friendica <info@friendica.com> | 2015-01-06 20:12:34 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-06 20:12:34 -0800 |
commit | 3ef487418df8465143cc0393803b2a1ff221697f (patch) | |
tree | 0f4d6c3feb14ca992eacf0c5e65b45d09ba10a27 /mod/admin.php | |
parent | fbe0610ce9a4ef62da8aba166250485f56e73d03 (diff) | |
download | volse-hubzilla-3ef487418df8465143cc0393803b2a1ff221697f.tar.gz volse-hubzilla-3ef487418df8465143cc0393803b2a1ff221697f.tar.bz2 volse-hubzilla-3ef487418df8465143cc0393803b2a1ff221697f.zip |
don't allow admin to delete the sys channel from the channel manage page
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/admin.php b/mod/admin.php index 0e580960a..74a373738 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -827,7 +827,7 @@ function admin_page_channels(&$a){ /* get channels */ $total = q("SELECT count(*) as total FROM channel where not (channel_pageflags & %d)>0", - intval(PAGE_REMOVED) + intval(PAGE_REMOVED|PAGE_SYSTEM) ); if($total) { $a->set_pager_total($total[0]['total']); @@ -837,7 +837,7 @@ function admin_page_channels(&$a){ $order = " order by channel_name asc "; $channels = q("SELECT * from channel where not ( channel_pageflags & %d )>0 $order limit %d offset %d ", - intval(PAGE_REMOVED), + intval(PAGE_REMOVED|PAGE_SYSTEM), intval($a->pager['itemspage']), intval($a->pager['start']) ); |