[SUCS Devel] [Git][sucssite/sucs-site][master] Update page feedback widget to ignore empty feedback

Andy Pover andy at sucs.org
Tue Jan 3 14:40:59 GMT 2017


Andy Pover pushed to branch master at sucssite / sucs-site


Commits:
2854f135 by Andy Pover at 2017-01-03T14:40:47+00:00
Update page feedback widget to ignore empty feedback
- - - - -


1 changed file:

- lib/page-feedback.php


Changes:

=====================================
lib/page-feedback.php
=====================================
--- a/lib/page-feedback.php
+++ b/lib/page-feedback.php
@@ -5,7 +5,7 @@
 $contact = "devel at lists.sucs.org";
 
 if ($session->loggedin) {
-    if ($_REQUEST["action"] == "feedback") {
+    if ($_REQUEST["action"] == "feedback" && $_REQUEST["feedback"] != "") {
         $feedback = $_REQUEST["feedback"];
 
         $msgbody = "{$session->username} had this to say about the page {$_SERVER['REQUEST_URI']}:\r\n\r\n";



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/2854f135e01d029269f3e4fd2dc5037b51acef7e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170103/eb0ff3ac/attachment.html>


More information about the Devel mailing list