Die Lösung des Problems:
./system/modules/ow_randomnews/classes/ow_randomnews.php, Zeile 51:
PHP-Code:
$objNews = $this->Database->prepare("SELECT id, headline, teaser, addImage, singleSRC, size, caption FROM tl_news WHERE pid = ? AND published = 1")
Das SQL-Statement um folgende Anweisung ergänzen:
Das sieht dann so aus:
PHP-Code:
$objNews = $this->Database->prepare("SELECT id, headline, teaser, addImage, singleSRC, size, caption FROM tl_news WHERE pid = ? AND published = 1 ORDER BY RAND()")
Da hat der Entwickler schlicht und einfach die Zufallsfunktion vergessen
Lesezeichen