Skip to content

Commit

Permalink
MAGETWO-32026: [GitHub] Invalid backend frontname During Installation #…
Browse files Browse the repository at this point in the history
…823

- Fixed the error based on CR feedback.
  • Loading branch information
unknown authored and eddielau committed Jan 9, 2015
1 parent d9d0f45 commit 73a1b59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(array $data)
if (!isset($data[self::KEY_FRONTNAME])) {
throw new \InvalidArgumentException("No backend frontname provided.");
}
if ($data[self::KEY_FRONTNAME] === '') {
if (empty($data[self::KEY_FRONTNAME])) {
throw new \InvalidArgumentException("Empty backend frontname provided.");
}
if (!preg_match('/^[a-zA-Z0-9_]+$/', $data[self::KEY_FRONTNAME])) {
Expand Down

0 comments on commit 73a1b59

Please sign in to comment.