1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Various minor adjustments

This commit is contained in:
Ryan Cramer
2019-02-08 14:46:20 -05:00
parent 5b45d17991
commit 65454985b1
4 changed files with 8 additions and 3 deletions

View File

@@ -35,7 +35,7 @@
function _wirePagesAPI($_apiVar, $selector) {
/** @var Pages|PagesType $pages */
$pages = wire($_apiVar);
$pages = is_object($_apiVar) ? $_apiVar : wire($_apiVar);
if(!$pages) return null;
if(!$selector) return $pages;