diff options
author | cash <cash.costello@gmail.com> | 2011-11-05 16:10:27 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-05 16:10:27 -0400 |
commit | 42e3a2567409713910694f9eafedfc053594d1dc (patch) | |
tree | 5c91b54fbfe1241d43eec6489e6601a09401d5f1 /engine | |
parent | 190bc843432a5556b4fdf03c54a613915eb45735 (diff) | |
download | elgg-42e3a2567409713910694f9eafedfc053594d1dc.tar.gz elgg-42e3a2567409713910694f9eafedfc053594d1dc.tar.bz2 |
fixed spacing on two uses of unset()
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index ff90e3185..0e89b34bd 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -989,7 +989,7 @@ function elgg_get_entity_type_subtype_where_sql($table, $types, $subtypes, $pair foreach ($types as $type) { if (!in_array($type, $valid_types)) { $valid_types_count--; - unset ($types[array_search($type, $types)]); + unset($types[array_search($type, $types)]); } else { // do the checking (and decrementing) in the subtype section. $valid_subtypes_count += count($subtypes); @@ -1041,7 +1041,7 @@ function elgg_get_entity_type_subtype_where_sql($table, $types, $subtypes, $pair foreach ($pairs as $paired_type => $paired_subtypes) { if (!in_array($paired_type, $valid_types)) { $valid_pairs_count--; - unset ($pairs[array_search($paired_type, $pairs)]); + unset($pairs[array_search($paired_type, $pairs)]); } else { if ($paired_subtypes && !is_array($paired_subtypes)) { $pairs[$paired_type] = array($paired_subtypes); |