Issue Bug Closed

#46000Wrong usage of array_unique() in RootlineUtility.php

Andreas Lingott 03/04/13, 09:16 updated 10/02/18, 12:15

Description

The array_unique() function has no effect because the returned array is NOT used and were not assigned to the static variable self::$rootlineFields

Impact:
We will get a very huge SQL statement after some loops (up to 2 MB SQL), see attached file “t3.sample.sql”.
Database gets very busy and load time of page increases.

Original file: RootlineUtility.php
File fixed: RootlineUtility.new.php
Diff file is attached: RootlineUtility.php.diff

From package: introductionpackage-6.0.2

Reviews 2