diff --git a/typo3/sysext/core/Classes/Database/DatabaseConnection.php b/typo3/sysext/core/Classes/Database/DatabaseConnection.php
index d36c4634bd716a7ae0bd217ed4147658719061de..4b6690f29db36cc00ede82c0381876e550cde54c 100644
--- a/typo3/sysext/core/Classes/Database/DatabaseConnection.php
+++ b/typo3/sysext/core/Classes/Database/DatabaseConnection.php
@@ -671,12 +671,12 @@ class DatabaseConnection {
 	 * @param string $field Field name
 	 * @param string $value Value to find in list
 	 * @param string $table Table in which we are searching (for DBAL detection of quoteStr() method)
-	 * @throws \InvalidArgumentException
 	 * @return string WHERE clause for a query
+	 * @throws \InvalidArgumentException
 	 */
 	public function listQuery($field, $value, $table) {
-		$value = (string) $value;
-		if (strpos(',', $value) !== FALSE) {
+		$value = (string)$value;
+		if (strpos($value, ',') !== FALSE) {
 			throw new \InvalidArgumentException('$value must not contain a comma (,) in $this->listQuery() !', 1294585862);
 		}
 		$pattern = $this->quoteStr($value, $table);