Commit 0b2607e8cb390f520cdf898d4f490fef0b9d3ece
1 parent
00196137
Merged in from DEV trunk...
KTS-673 "The search algorithm needs some work" Updated. Like was missing. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie KTS-2568 "Add scheduler service to Linux" Added sh file. Committed By: Kevin Fourie Reviewed By: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@7527 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
8 additions
and
1 deletions
bin/taskrunner.php
| @@ -46,7 +46,7 @@ if (!is_file($phpPath)) | @@ -46,7 +46,7 @@ if (!is_file($phpPath)) | ||
| 46 | while (1) { | 46 | while (1) { |
| 47 | 47 | ||
| 48 | // Run the scheduler script | 48 | // Run the scheduler script |
| 49 | - system("$phpPath scheduler.php"); | 49 | + shell_exec("$phpPath scheduler.php"); |
| 50 | 50 | ||
| 51 | sleep(10); // Run every 10 seconds | 51 | sleep(10); // Run every 10 seconds |
| 52 | 52 |
bin/taskrunner.sh
0 → 100644
search2/search/expr.inc.php
| @@ -554,6 +554,10 @@ class ValueExpr extends Expr | @@ -554,6 +554,10 @@ class ValueExpr extends Expr | ||
| 554 | 554 | ||
| 555 | switch($op) | 555 | switch($op) |
| 556 | { | 556 | { |
| 557 | + case ExprOp::LIKE: | ||
| 558 | + $sql = "$fieldname LIKE '$val'"; | ||
| 559 | + if ($not) $sql = "not ($sql)"; | ||
| 560 | + break; | ||
| 557 | case ExprOp::CONTAINS: | 561 | case ExprOp::CONTAINS: |
| 558 | $sql = "$fieldname LIKE '%$val%'"; | 562 | $sql = "$fieldname LIKE '%$val%'"; |
| 559 | if ($not) $sql = "not ($sql)"; | 563 | if ($not) $sql = "not ($sql)"; |