File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
# PHP Database Web API
2
2
![ ] ( cover.png )
3
3
4
- ** Version:** 0.6.130 beta
4
+ ** Version:** 0.6.131 beta
5
5
6
6
** Github:** https://github.com/marcocesarato/Database-Web-API
7
7
Original file line number Diff line number Diff line change @@ -660,11 +660,12 @@ private function get($query, $db = null) {
660
660
// build WHERE query
661
661
$ restriction = $ this ->auth ->permissionSQL ($ query ['table ' ], 'READ ' );
662
662
if (!empty ($ query ['where ' ]) && is_array ($ query ['where ' ])) {
663
- $ where = $ this ->parseWhere ($ query ['table ' ], $ query ['where ' ], $ sql );
664
- $ sql = $ where ["sql " ] . ' AND ' . $ restriction ;
665
- $ where_values = $ where ["values " ];
663
+ $ query ['where ' ] = $ this ->hooks ->apply_filters ('get_query_where_ ' . strtolower ($ query ['table ' ]), $ query ['where ' ]);
664
+ $ where = $ this ->parseWhere ($ query ['table ' ], $ query ['where ' ], $ sql );
665
+ $ sql = $ where ["sql " ] . ' AND ' . $ restriction ;
666
+ $ where_values = $ where ["values " ];
666
667
} else if (!empty ($ restriction )) {
667
- $ sql .= ' WHERE ' . $ restriction ;
668
+ $ sql .= ' WHERE ' . $ restriction . $ this -> hooks -> apply_filters ( ' get_where_ ' . strtolower ( $ query [ ' table ' ]), "" ) ;
668
669
}
669
670
670
671
// build ORDER query
You can’t perform that action at this time.
0 commit comments