aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index c1b7d7f50..aea310841 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -273,6 +273,9 @@
$this->right_field = sanitise_string($right_field);
}
+ /**
+ * Return the SQL without the link operator.
+ */
public function toStringNoLink()
{
return "{$this->left_table }.{$this->left_field} {$this->operator} {$this->right_table}.{$this->right_field}";
@@ -314,6 +317,9 @@
$this->value = "'".sanitise_string($value)."'";
}
+ /**
+ * Return the SQL without the link operator.
+ */
public function toStringNoLink()
{
return "{$this->left_table }.{$this->left_field} {$this->operator} {$this->value}";