Skip to content

Commit

Permalink
Merge pull request #108 from FriendsOfREDAXO/cb-14
Browse files Browse the repository at this point in the history
RexStan-Überprüfung: uninstall.php
  • Loading branch information
alxndr-w authored Sep 8, 2024
2 parents 75f6bd2 + 9225dab commit 23d2c37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,24 @@
*/
$urlProfileTable = rex::getTable(Profile::TABLE_NAME);

/**
* RexStan: Unable to resolve the template type TFetchType in call to method rex_sql::getArray()
* RexStan: Parameter $fetchType of method rex_sql::getArray() expects 2|3|12, 7 given.
* Das liegt an rex_sql; dort sind nicht alle möglichen PDO::FETCH_... hinterlegt.
* kann man ignorieren.
*/
$profiles = $sql->setTable($urlProfileTable)
->setWhere('table_name LIKE :tn', [':tn' => '1_xxx_rex_neues_%'])
->select('id')
->getArray(fetchType: PDO::FETCH_COLUMN);

foreach ($profiles as $profileId) {
$profile = Profile::get($profileId);
/**
* RexStan: Strict comparison using !== between null and Url\Profile will always evaluate to true.
* Der Fehler ist im URL-Addon (https://github.com/tbaddade/redaxo_url/pull/301)
* TODO: wenn im URL-Addon behoben kann dieser Kommentar gelöscht werden.
*/
if (null !== $profile) {
$profile->deleteUrls();
}
Expand Down

0 comments on commit 23d2c37

Please sign in to comment.