Changeset 294

Show
Ignore:
Timestamp:
12/20/07 09:53:33 (13 years ago)
Author:
ralle030583
Message:

- bugfix: not able to post comments when logged in as admin

Location:
dev/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/globals.php

    r293 r294  
    11<?php 
    22// current subversion revision 
    3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 293 $', $match); 
     3preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 294 $', $match); 
    44define('SVN_REV', $match[1]); 
    55 
  • dev/common/kill_detail.php

    r293 r294  
    1313    { 
    1414        $smarty->assign('admin', 'true'); 
    15         if (isset($_POST['submit']) == 'UpdateValue') 
     15        if (isset($_POST['submit']) && $_POST['submit'] == 'UpdateValue') 
    1616        { 
    1717            // Send new value for item to the database 
     
    2424} 
    2525 
    26 if (isset($_GET['view']) == 'FixSlot'){ 
    27     $smarty->assign('fixSlot', 'true'); 
    28 } 
    29  
    3026if ($page->isAdmin()) 
    3127{ 
    32     if (isset($_GET['view']) == 'FixSlot'){ 
     28    if (isset($_GET['view']) && $_GET['view']== 'FixSlot'){ 
    3329        $smarty->assign('fixSlot', 'true'); 
    3430    } 
     
    3632 
    3733         $smarty->assign('admin', 'true'); 
    38          if (isset($_POST['submit']) == 'UpdateSlot') 
     34         if (isset($_POST['submit']) && $_POST['submit'] == 'UpdateSlot') 
    3935     { 
    4036         $IID = $_POST['IID']; 
     
    4541         $qry = new DBQuery(); 
    4642         $qry->execute("UPDATE kb3_items_".$table." SET itd_itl_id ='".$Val."' WHERE itd_itm_id=".$IID." AND itd_kll_id = ".$KID." AND itd_itl_id = ".$old); 
    47          //echo "UPDATE kb3_items_".$table." itd_itl_id ='".$Val."' WHERE itd_itm_id=".$IID." AND itd_kll_id = ".$KID." AND itd_itl_id = ".$old; 
    4843     } 
    4944}