mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Use empty check
This commit is contained in:
parent
3af1910cf9
commit
2f9802afa2
1 changed files with 2 additions and 2 deletions
|
|
@ -713,9 +713,9 @@ class Builds extends Action
|
|||
->addOption(new XStatic());
|
||||
$detection = $detector->detect();
|
||||
|
||||
$adapter = $resource->getAttribute('adapter', null);
|
||||
$adapter = $resource->getAttribute('adapter', '');
|
||||
|
||||
if ($adapter === null) {
|
||||
if (empty($adapter)) {
|
||||
$resource->setAttribute('adapter', $detection->getName());
|
||||
$resource->setAttribute('fallbackFile', $detection->getFallbackFile() ?? '');
|
||||
$resource = $dbForProject->updateDocument('sites', $resource->getId(), $resource);
|
||||
|
|
|
|||
Loading…
Reference in a new issue