phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] headlines/deleteheadline.php, 1.9.4.3


From: nomail
Subject: [Phpgroupware-cvs] headlines/deleteheadline.php, 1.9.4.3
Date: Thu, 15 Jul 2004 06:48:58 +0200

Update of /headlines
Modified Files:
        Branch: Version-0_9_16-branch
          deleteheadline.php

date: 2004/07/15 04:48:58;  author: skwashd;  state: Exp;  lines: +6 -5

Log Message:
fixes bug #6348
=====================================================================
Index: headlines/deleteheadline.php
diff -u headlines/deleteheadline.php:1.9.4.2 
headlines/deleteheadline.php:1.9.4.3
--- headlines/deleteheadline.php:1.9.4.2        Thu Jan 29 08:46:11 2004
+++ headlines/deleteheadline.php        Thu Jul 15 04:48:58 2004
@@ -21,9 +21,9 @@
        include('../header.inc.php');
 
        $con            = intval(get_var('con', array('GET', 'POST'), 0));
-       $confirm        = intval(get_var('confirm', array('GET', 'POST'), 0));
+       $confirm        = (get_var('confirm', array('GET', 'POST'), 0) == 
'true' ? 1 : 0 );
 
-       if (($con) && (! $confirm))
+       if ($con && (! $confirm))
        {
                $GLOBALS['phpgw']->common->phpgw_header();
                echo parse_navbar();
@@ -47,7 +47,7 @@
 
                $GLOBALS['phpgw']->common->phpgw_footer();
        }
-       else
+       elseif($con && $confirm)
        {
                $GLOBALS['phpgw']->db->transaction_begin();
 
@@ -80,6 +80,7 @@
                }
 
                $GLOBALS['phpgw']->db->transaction_commit();
-               
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/headlines/admin.php','cd=16'));
+               Header('Location: ' . 
$GLOBALS['phpgw']->link('/headlines/admin.php','cd=16'));
+               exit;
        }
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]