Skip to content

Commit 29fb064

Browse files
authored
Merge pull request #1 from sobolevna/patch-1
Update File.php
2 parents ccee869 + 7b4e98c commit 29fb064

File tree

1 file changed

+1
-1
lines changed
  • src/PHPixie/Config/Storages/Type

1 file changed

+1
-1
lines changed

src/PHPixie/Config/Storages/Type/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getData($path = null, $isRequired = false, $default = null)
4343

4444
protected function checkParameter(&$value)
4545
{
46-
if(is_string($value) && $value{0} == '%') {
46+
if($value && is_string($value) && $value{0} == '%') {
4747
$length = strlen($value);
4848
if($value{$length - 1} == '%') {
4949
$value = $this->parameters->getRequired(substr($value, 1, $length-2));

0 commit comments

Comments
 (0)