Another year is about to end... So we have to update these damn copyright information :P
[PHP-P10.git] / Bots / PulseBot.class.php
index de2345ada65894b8f53ef1dbed81d9878d4283d3..b9a5e6a180544e5798a047be20fb0c47bb24329a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /******************************* PHP-P10 v2 *****************************
- * Copyright (C) 2011  Philipp Kreil (pk910)                            *
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)                       *
  *                                                                      *
  * This program is free software: you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -145,7 +145,7 @@ class {$_NAME} extends Bot {
                                        if(!array_key_exists("users", $this->db)) {
                                                $this->db['users'] = array();
                                        }
-                                       $this->db['users'][$auth] = $pulseUser->MemberName;
+                                       $this->db['users'][$auth] = strval($pulseUser->MemberName);
                                        $this->uplink->notice($this->pulsebot, $user, "WhatPulse user '".$pulseUserName."' added (Keys: ".number_format(floatval($pulseUser->MemberKeys),0,',','.').", Clicks: ".number_format(floatval($pulseUser->MemberClicks),0,',','.').").");
                                }
                                break;