diff --git a/lib/classes/JsonApi/Routes/Blubber/ThreadsIndex.php b/lib/classes/JsonApi/Routes/Blubber/ThreadsIndex.php index 74f406962ef874fe83c16fa45be3e6924e131b77..91cfa89210b43d31754fc2a8e19306dfa585d90e 100644 --- a/lib/classes/JsonApi/Routes/Blubber/ThreadsIndex.php +++ b/lib/classes/JsonApi/Routes/Blubber/ThreadsIndex.php @@ -77,7 +77,7 @@ class ThreadsIndex extends JsonApiController private function getPublicThreads(\User $observer) { return $this->paginateThreads( - $this->upgradeAndFilterThreads($observer, \BlubberThread::findBySQL('context_type = "public"')) + $this->upgradeAndFilterThreads($observer, \BlubberThread::findBySQL("context_type = 'public'")) ); } diff --git a/lib/classes/sidebar/RoomSearchWidget.class.php b/lib/classes/sidebar/RoomSearchWidget.class.php index c1a3d6a856f92571cd868612a1a52ca761f0067c..f12e73ea7a6ce2971997596dba6f4379aba74901 100644 --- a/lib/classes/sidebar/RoomSearchWidget.class.php +++ b/lib/classes/sidebar/RoomSearchWidget.class.php @@ -22,7 +22,7 @@ class RoomSearchWidget extends SidebarWidget ] ); - $resource_categories = ResourceCategory::findBySQL('`class_name` ="Room" ORDER by `name`'); + $resource_categories = ResourceCategory::findBySQL("class_name = 'Room' ORDER by name"); $categories = [ '' => _('Alle Kategorien') ]; diff --git a/tests/jsonapi/BlubberThreadsIndexTest.php b/tests/jsonapi/BlubberThreadsIndexTest.php index ec2929c9071e1c2c4f32b9ef31471a5af910089e..ab6d200fd2ff6b1f15a1f9f208c655a1146c9ea8 100644 --- a/tests/jsonapi/BlubberThreadsIndexTest.php +++ b/tests/jsonapi/BlubberThreadsIndexTest.php @@ -58,7 +58,7 @@ class BlubberThreadsIndexTest extends \Codeception\Test\Unit return count( $this->upgradeAndFilterThreads( $credentials, - \BlubberThread::findBySQL('context_type = "public" AND visible_in_stream') + \BlubberThread::findBySQL("context_type = 'public' AND visible_in_stream") ) ); });