diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-18 03:59:13 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-18 03:59:13 +0000 |
commit | 68fa2ce84e3f511c589ab5ce27589ef5f1c982b4 (patch) | |
tree | 7c239bb119a8a77d70db5a389ffd234c73d3f35a | |
parent | 004fc9bb5ff316da1458ced0c1235d704b2f4f1b (diff) |
Revising ->like
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@658 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 97c2704f..6617edcd 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -2290,18 +2290,7 @@ sub current_date { sub like { my ($self, $str) = @_; - - if ($str !~ /(%|_)/) { - - if ($str =~ /(^").*("$)/) { - $str =~ s/(^"|"$)//g; - } else { - $str = "%$str%"; - } - } - - $str =~ s/'/''/g; - $str; + "%$str%"; } |