corrade-http-templates – Diff between revs 1 and 4

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 4
Line 21... Line 21...
21 ## INTERNALS ## 21 ## INTERNALS ##
22 ########################################################################### 22 ###########################################################################
Line 23... Line 23...
23   23  
24 # Check if this is the group chat notification. 24 # Check if this is the group chat notification.
25 if(!isset($_POST['type']) || $_POST['type'] != "message") return; 25 if(!isset($_POST['type']) || $_POST['type'] != "message") return;
26 # Bail if "firstname", "lastname" or the "message" variables are blank. 26 # Check that we have all the required variables.
-   27 if(!isset($_POST['firstname']) ||
27 if(!isset($_POST['firstname']) || 28 empty($_POST['firstname']) ||
-   29 !isset($_POST['lastname']) ||
-   30 empty($_POST['lastname']) ||
28 !isset($_POST['lastname']) || 31 !isset($_POST['message']) ||
Line 29... Line 32...
29 !isset($_POST['message'])) return; 32 empty($_POST['message'])) return;
30 33
31 #### 34 ####