Skip to content

Commit

Permalink
Fixed passing null is deprecated for stripos in Mage_Core_Model_Resou…
Browse files Browse the repository at this point in the history
…rce_Helper_Abstract (OpenMage#3295)

Co-authored-by: Fabrizio Balliano <[email protected]>
  • Loading branch information
kyrena and fballiano authored Jun 7, 2023
1 parent 8681773 commit 3a6eaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Resource/Helper/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function convertOldColumnDefinition($column)
'unsigned' => $column['unsigned'],
'nullable' => $column['is_null'],
'default' => $column['default'],
'identity' => stripos($column['extra'], 'auto_increment') !== false
'identity' => !empty($column['extra']) && (stripos($column['extra'], 'auto_increment') !== false),
];

/**
Expand Down

0 comments on commit 3a6eaa3

Please sign in to comment.