[geeklog-cvs] geeklog: E_ALL fixes

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 13 04:25:28 EDT 2012


changeset 8697:57a4c275ff26
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/57a4c275ff26
user: Dirk Haun <dirk at haun-online.de>
date: Sun May 13 09:27:08 2012 +0200
description:
E_ALL fixes

diffstat:

 system/lib-comment.php |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e8074f11eb0d -r 57a4c275ff26 system/lib-comment.php
--- a/system/lib-comment.php	Sun May 13 09:26:13 2012 +0200
+++ b/system/lib-comment.php	Sun May 13 09:27:08 2012 +0200
@@ -158,7 +158,10 @@
         $hidden = '';
         $commentmode = COM_applyFilter($_REQUEST[CMT_MODE]);
         $cid = COM_applyFilter($_REQUEST[CMT_CID], true);
-        $pid = COM_applyFilter($_REQUEST[CMT_PID], true);
+        $pid = 0;
+        if (isset($_REQUEST[CMT_PID])) {
+            $pid = COM_applyFilter($_REQUEST[CMT_PID], true);
+        }
         if (in_array($commentmode, array('view', $LANG03[28], $LANG03[34], $LANG03[14], 'edit'))) {
             $hidden .= '<input type="hidden" name="' . CMT_CID . '" value="' . $cid . '"' . XHTML . '>';
             $hidden .= '<input type="hidden" name="' . CMT_PID . '" value="' . $cid . '"' . XHTML . '>';
@@ -283,7 +286,10 @@
         return '';
     }
 
-    $commentmode = COM_applyFilter($_REQUEST[CMT_MODE]);
+    $commentmode = '';
+    if (isset($_REQUEST[CMT_MODE])) {
+        $commentmode = COM_applyFilter($_REQUEST[CMT_MODE]);
+    }
     $submit = (($commentmode == $LANG03[29]) || ($commentmode == $LANG03[35]));
     $token = '';
     if ($delete_option && !$preview && !$submit) {



More information about the geeklog-cvs mailing list