mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Bugtracker #4266 - allow download cat order of zero
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $
|
||||||
| $Revision: 1.7 $
|
| $Revision: 1.8 $
|
||||||
| $Date: 2007-11-21 22:52:46 $
|
| $Date: 2007-12-22 14:03:23 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -122,15 +122,19 @@ if (isset($_POST['submit_download'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(isset($_POST['update_catorder'])){
|
if(isset($_POST['update_catorder']))
|
||||||
foreach($_POST['catorder'] as $key=>$order){
|
{
|
||||||
if($_POST['catorder'][$key]){
|
foreach($_POST['catorder'] as $key=>$order)
|
||||||
$sql -> db_Update("download_category", "download_category_order='".intval($order)."' WHERE download_category_id='".intval($key)."'");
|
{
|
||||||
}
|
if (is_numeric($_POST['catorder'][$key]))
|
||||||
|
{
|
||||||
|
$sql -> db_Update("download_category", "download_category_order='".intval($order)."' WHERE download_category_id='".intval($key)."'");
|
||||||
}
|
}
|
||||||
$ns->tablerender("", "<div style='text-align:center'><b>".LAN_UPDATED."</b></div>");
|
}
|
||||||
|
$ns->tablerender("", "<div style='text-align:center'><b>".LAN_UPDATED."</b></div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST['updateoptions']))
|
if (isset($_POST['updateoptions']))
|
||||||
{
|
{
|
||||||
$pref['download_php'] = $_POST['download_php'];
|
$pref['download_php'] = $_POST['download_php'];
|
||||||
|
Reference in New Issue
Block a user