diff --git a/src/Concerns/PerInputGet.php b/src/Concerns/PerInputGet.php index 5238098..3dac712 100644 --- a/src/Concerns/PerInputGet.php +++ b/src/Concerns/PerInputGet.php @@ -126,7 +126,7 @@ public function getNameDot(){ } protected function _getTextTable($key, $guide = false){ - $function = $guide ? '__' : [self::class, 'transNull']; + $function = !$guide ? '__' : [self::class, 'transNull']; return ( $this->table !== null ? call_user_func( $function, 'columns.' . $this->table . '.'. $key . ($guide ? '_guide' : '') ) @@ -177,7 +177,7 @@ public function getGuide($force_key = null){ // If no guides, it means look to normal text // instead with _guide suffix on key if ($target === null){ - $target = $this->shift_text ?? $this->alt_text_base ?? $this->text; + $target = $this->alt_text_base ?? $this->shift_text ?? $this->text; $pointer .= '_guide'; }