Skip to content

Commit

Permalink
fix #1212
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Oct 28, 2021
1 parent 01d9d0c commit ceaa545
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions var/Typecho/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Typecho\Widget\Request as WidgetRequest;
use Typecho\Widget\Response as WidgetResponse;
use Typecho\Widget\Terminal;
use Typecho\Widget\Exception as WidgetException;

/**
* Typecho组件基类
Expand Down Expand Up @@ -397,11 +396,6 @@ public function __get(string $name)
}
}

if (!$this->have()) {
throw new WidgetException('Property ' . static::class
. ':$' . $name . ' is not exists');
}

return null;
}

Expand Down

0 comments on commit ceaa545

Please sign in to comment.