aboutsummaryrefslogtreecommitdiffstats
path: root/mod/group.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-26 17:24:20 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-26 17:24:20 -0700
commit34eedb503acad59d649f96d3250b40cc1c84047c (patch)
tree95f0eb71d4db446743f5043ce8009fcc1566d9fa /mod/group.php
parent1105cdb0654b6f9bb03e686b351da1cdaa8d8f4f (diff)
downloadvolse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.tar.gz
volse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.tar.bz2
volse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.zip
stronger type checking on comparisons
Diffstat (limited to 'mod/group.php')
-rw-r--r--mod/group.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/group.php b/mod/group.php
index aa4751961..dc5dd3c71 100644
--- a/mod/group.php
+++ b/mod/group.php
@@ -20,7 +20,7 @@ function group_post(&$a) {
return;
}
- if(($a->argc == 2) && ($a->argv[1] == 'new')) {
+ if(($a->argc == 2) && ($a->argv[1] === 'new')) {
$name = notags(trim($_POST['groupname']));
$r = group_add(get_uid(),$name);
if($r) {
@@ -88,13 +88,13 @@ function group_content(&$a) {
return;
}
- if(($a->argc == 2) && ($a->argv[1] == 'new')) {
+ if(($a->argc == 2) && ($a->argv[1] === 'new')) {
$tpl = load_view_file('view/group_new.tpl');
$o .= replace_macros($tpl,array());
return $o;
}
- if(($a->argc == 3) && ($a->argv[1] == 'drop')) {
+ if(($a->argc == 3) && ($a->argv[1] === 'drop')) {
if(intval($a->argv[2])) {
$r = q("SELECT `name` FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($a->argv[2]),