Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from diemuzi/patch-1

Fixed Assignment in Condition notices
  • Loading branch information...
commit d44259f4f090e9f57d3f8a9861f8e7da30bef521 2 parents 13c8b93 + bf82ba7
@kvz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 System/Daemon/OS.php
View
4 System/Daemon/OS.php
@@ -321,7 +321,7 @@ public static function isWritable($path)
return self::isWritable($path.'/'.uniqid(mt_rand()).'.tmp');
}
// check tmp file for read/write capabilities
- if (($rm = file_exists($path))) {
+ if (false !== ($rm = file_exists($path))) {
$f = fopen($path, 'a');
} else {
$f = fopen($path, 'w');
@@ -590,7 +590,7 @@ protected function _getAncestorCount($class)
protected function _getAncestors($class)
{
$classes = array();
- while ($class = get_parent_class($class)) {
+ while (false !== ($class = get_parent_class($class))) {
$classes[] = $class;
}
return $classes;
Please sign in to comment.
Something went wrong with that request. Please try again.