Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
18fbd751
Commit
18fbd751
authored
Nov 02, 2013
by
Alexander Mohorev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing return statement
parent
cc5fe76c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
ActiveRecord.php
framework/yii/db/ActiveRecord.php
+2
-0
Schema.php
framework/yii/db/mssql/Schema.php
+2
-0
GettextMoFile.php
framework/yii/i18n/GettextMoFile.php
+2
-0
No files found.
framework/yii/db/ActiveRecord.php
View file @
18fbd751
...
@@ -1266,6 +1266,8 @@ class ActiveRecord extends Model
...
@@ -1266,6 +1266,8 @@ class ActiveRecord extends Model
$relation
=
$this
->
$getter
();
$relation
=
$this
->
$getter
();
if
(
$relation
instanceof
ActiveRelation
)
{
if
(
$relation
instanceof
ActiveRelation
)
{
return
$relation
;
return
$relation
;
}
else
{
return
null
;
}
}
}
catch
(
UnknownMethodException
$e
)
{
}
catch
(
UnknownMethodException
$e
)
{
throw
new
InvalidParamException
(
get_class
(
$this
)
.
' has no relation named "'
.
$name
.
'".'
,
0
,
$e
);
throw
new
InvalidParamException
(
get_class
(
$this
)
.
' has no relation named "'
.
$name
.
'".'
,
0
,
$e
);
...
...
framework/yii/db/mssql/Schema.php
View file @
18fbd751
...
@@ -118,6 +118,8 @@ class Schema extends \yii\db\Schema
...
@@ -118,6 +118,8 @@ class Schema extends \yii\db\Schema
if
(
$this
->
findColumns
(
$table
))
{
if
(
$this
->
findColumns
(
$table
))
{
$this
->
findForeignKeys
(
$table
);
$this
->
findForeignKeys
(
$table
);
return
$table
;
return
$table
;
}
else
{
return
null
;
}
}
}
}
...
...
framework/yii/i18n/GettextMoFile.php
View file @
18fbd751
...
@@ -203,6 +203,8 @@ class GettextMoFile extends GettextFile
...
@@ -203,6 +203,8 @@ class GettextMoFile extends GettextFile
{
{
if
(
$byteCount
>
0
)
{
if
(
$byteCount
>
0
)
{
return
fread
(
$fileHandle
,
$byteCount
);
return
fread
(
$fileHandle
,
$byteCount
);
}
else
{
return
null
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment