Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

if properties are empty skip them

  • Loading branch information...
commit 5c8cea3fe795b61d5765e1b465f74bff74e4c9cf 1 parent 1c57d77
@dkullmann authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 controllers/components/mixpanel.php
View
6 controllers/components/mixpanel.php
@@ -40,8 +40,10 @@ public function identify($id) {
*/
public function register($properties) {
$register = $this->Session->read('Mixpanel.register');
- foreach($properties as $key => $value) {
- $register[$key] = $value;
+ if (!empty($properties)) {
+ foreach($properties as $key => $value) {
+ $register[$key] = $value;
+ }
}
$this->Session->write('Mixpanel.register', $register);
}
Please sign in to comment.
Something went wrong with that request. Please try again.