Skip to content

Commit

Permalink
Missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mohorev committed Nov 2, 2013
1 parent cc5fe76 commit 18fbd75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/yii/db/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,8 @@ public function getRelation($name)
$relation = $this->$getter();
if ($relation instanceof ActiveRelation) {
return $relation;
} else {
return null;
}
} catch (UnknownMethodException $e) {
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".', 0, $e);
Expand Down
2 changes: 2 additions & 0 deletions framework/yii/db/mssql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function loadTableSchema($name)
if ($this->findColumns($table)) {
$this->findForeignKeys($table);
return $table;
} else {
return null;
}
}

Expand Down
2 changes: 2 additions & 0 deletions framework/yii/i18n/GettextMoFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ protected function readBytes($fileHandle, $byteCount = 1)
{
if ($byteCount > 0) {
return fread($fileHandle, $byteCount);
} else {
return null;
}
}

Expand Down

0 comments on commit 18fbd75

Please sign in to comment.