Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use plugin model in updatedb helper
- Loading branch information
1 parent
43025b7
commit e4cccb5
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 comments
on commit e4cccb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!empty($plugin)) {
if ($plugin['plugin_type'] == 'core') {
$oDB->createCommand()->update(
'{{plugins}}',
['plugin_type' => 'core'],
'name = :name',
[':name' => $plugin['name']]
);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I changed it for $plugin['name'] but forgot that one, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($plugin['plugin_type'] == 'core') {
should be
if ($plugin['plugin_type'] !== 'core') {
queryRow return an array …
Then
Trying to get property 'plugin_type' of non-object
with debug set …And nothing fixed (i think) without debug.