File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11# PHP Database Web API
22![ ] ( cover.png )
33
4- ** Version:** 0.6.130 beta
4+ ** Version:** 0.6.131 beta
55
66** Github:** https://github.com/marcocesarato/Database-Web-API
77
Original file line number Diff line number Diff line change @@ -660,11 +660,12 @@ private function get($query, $db = null) {
660660 // build WHERE query
661661 $ restriction = $ this ->auth ->permissionSQL ($ query ['table ' ], 'READ ' );
662662 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 " ];
666667 } else if (!empty ($ restriction )) {
667- $ sql .= ' WHERE ' . $ restriction ;
668+ $ sql .= ' WHERE ' . $ restriction . $ this -> hooks -> apply_filters ( ' get_where_ ' . strtolower ( $ query [ ' table ' ]), "" ) ;
668669 }
669670
670671 // build ORDER query
You can’t perform that action at this time.
0 commit comments