Skip to content

Commit 3881c33

Browse files
committed
Merge branch 'release2.13.1'
2 parents d626d02 + 049c05b commit 3881c33

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Traits/HasSettings.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ public function settings($setting = null) {
5050
return $this->_settings;
5151
}
5252

53-
public function hasSettings() {
53+
public function hasSettings($setting = null) {
54+
if ($setting) {
55+
if ($this->_settings->has($setting)) {
56+
return $this->_settings[$setting];
57+
}
58+
59+
return false;
60+
}
61+
5462
return $this->_settings;
5563
}
5664
}

0 commit comments

Comments
 (0)