svn: /web/php-rmtools/trunk/client/include/ Branch.php
| From: | Pierre Joye | Date: | Tue, 26 Apr 2011 11:02:40 +0000 |
| Subject: | svn: /web/php-rmtools/trunk/client/include/ Branch.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10886@lists.php.net to get a copy of this message | ||
pajoye Tue, 26 Apr 2011 11:02:40 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310512
Log:
- use stdClass instance instead of array, silent warning on 1st run (could be array but nicer this
way)
Changed paths:
U web/php-rmtools/trunk/client/include/Branch.php
Modified: web/php-rmtools/trunk/client/include/Branch.php
===================================================================
--- web/php-rmtools/trunk/client/include/Branch.php 2011-04-26 10:53:24 UTC (rev 310511)
+++ web/php-rmtools/trunk/client/include/Branch.php 2011-04-26 11:02:40 UTC (rev 310512)
@@ -25,11 +25,11 @@
if (file_exists($this->db_path)) {
$this->data = json_decode(file_get_contents($this->db_path));
} else {
- $this->data = array(
- 'revision_last' => NULL,
- 'revision_previous' => NULL,
- 'revision_last_exported' => NULL,
- );
+ $data = new \StdClass;
+ $data->revision_last = NULL;
+ $data->revision_previous = NULL;
+ $data->revision_last_exported = NULL;
+ $this->data = $data;
}
$this->addBuildList();
}