mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix memory usage on integrity check (#6660)
This commit is contained in:
parent
dfb8c846be
commit
5cdb26cfac
@ -7,6 +7,7 @@ HumHub Changelog
|
||||
- Fix #6645: File dropdown not visible at the bottom of the page
|
||||
- Fix #6639: Apply image inline styles in email message
|
||||
- Fix #6649: Fix birthday format on welcome page
|
||||
- Fix #6660: Fix memory usage on integrity check
|
||||
|
||||
|
||||
1.15.0 (November 6, 2023)
|
||||
|
@ -66,7 +66,7 @@ class Events extends \yii\base\BaseObject
|
||||
$integrityController = $event->sender;
|
||||
$integrityController->showTestHeadline("File Module (" . File::find()->count() . " entries)");
|
||||
|
||||
foreach (File::find()->all() as $file) {
|
||||
foreach (File::find()->each() as $file) {
|
||||
if ($file->object_model != "" && $file->object_id != "" && $file->getPolymorphicRelation() === null) {
|
||||
if ($integrityController->showFix("Deleting file id " . $file->id . " without existing target!")) {
|
||||
$file->delete();
|
||||
|
@ -26,7 +26,7 @@ class Events extends \yii\base\BaseObject
|
||||
$integrityController = $event->sender;
|
||||
|
||||
$integrityController->showTestHeadline("Post Module - Posts (" . Post::find()->count() . " entries)");
|
||||
foreach (Post::find()->all() as $post) {
|
||||
foreach (Post::find()->each() as $post) {
|
||||
/* @var Post $post */
|
||||
if (empty($post->content->id)) {
|
||||
if ($integrityController->showFix("Deleting post " . $post->id . " without existing content record!")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user