Skip to content

Commit 565f809

Browse files
committed
fixed bugs at building
1 parent 7301c55 commit 565f809

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

class/Building.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public function clearDir($dir, $pattern = '*')
9797
unlink($file);
9898
}
9999
}
100-
rmdir($dir);
100+
if (is_dir($dir)) {
101+
rmdir($dir);
102+
}
101103
}
102104

103105
/**

class/Files/Classes/ClassFiles.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ private function getClassObject($module, $table, $fields)
179179
$fieldElements = $tc->getHandler('fieldelements')->get($fieldElement);
180180
$fieldElementId[] = $fieldElements->getVar('fieldelement_id');
181181
$rpFieldName = $this->getRightString($fieldName);
182-
if (in_array(5, $fieldElementId)) {
183-
if (count($rpFieldName) % 5) {
184-
$optionsFieldName[] = "'" . $rpFieldName . "'";
185-
} else {
182+
if (in_array(5, $fieldElementId)) {
183+
//if (count($rpFieldName) % 5) {
184+
//$optionsFieldName[] = "'" . $rpFieldName . "'";
185+
//} else {
186186
$optionsFieldName[] = "'" . $rpFieldName . "'\n";
187-
}
187+
//}
188188
}
189189
if ((0 == $f) && (1 == $table->getVar('table_autoincrement'))) {
190190
$fieldId = $fieldName;

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- rebuild blocks file (goffy)
2121
- splitted CreateHtmlSmartycodes into CreateHtmlcode/CreateSmartycode for better handling (goffy)
2222
- added images for checkbox and status in lists in admin area (goffy)
23+
- fixed bugs at building (goffy)
2324

2425
<h5>3.01 Alpha 2 [WORK IN PROGRESS - NOT RELEASED]</h5> Dev: XOOPS 2.5.11, PHP 7.4.2
2526
<hr>

0 commit comments

Comments
 (0)