Skip to content

Commit eed2f53

Browse files
committed
Allow using presentations
1 parent 7b60815 commit eed2f53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ModuleStubs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ private function RegisterAttribute($Name, $DefaultValue, $Type)
716716

717717
private function RegisterVariable($Ident, $Name, $Type, $ProfileOrPresentation, $Position)
718718
{
719-
if ($ProfileOrPresentation !== '') {
719+
if (is_string($ProfileOrPresentation) && ($ProfileOrPresentation !== '')) {
720720
//prefer system profiles
721721
if (IPS_VariableProfileExists('~' . $ProfileOrPresentation)) {
722722
$ProfileOrPresentation = '~' . $ProfileOrPresentation;

0 commit comments

Comments
 (0)