[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-commits
Subject:    [6141] Make sure to use quotes around booleans.
From:       theory () bricolage ! cc
Date:       2005-01-12 16:19:32
Message-ID: 20050112161932.12440.qmail () x1 ! develooper ! com
[Download RAW message or body]

Revision: 6141
Author:   theory
Date:     2005-01-12 08:19:29 -0800 (Wed, 12 Jan 2005)
ViewCVS:  http://viewsvn.bricolage.cc/?rev=6141&view=rev

Log Message:
-----------
Make sure to use quotes around booleans.

Modified Files:
--------------
    bricolage/trunk/lib/Bric/Biz/Contact.pm



["r6141-theory.diff" (r6141-theory.diff)]

Modified: bricolage/trunk/lib/Bric/Biz/Contact.pm
===================================================================
--- bricolage/trunk/lib/Bric/Biz/Contact.pm	2005-01-12 02:03:26 UTC (rev 6140)
+++ bricolage/trunk/lib/Bric/Biz/Contact.pm	2005-01-12 16:19:29 UTC (rev 6141)
@@ -1499,7 +1499,7 @@
 $get_types = sub {
     my ($href, $alert, $ids) = @_;
     my @qry_cols = $href ? ('c.id', @type_cols) : ('c.type');
-    my $where = $alert ? 'AND alertable = 1' : '';
+    my $where = $alert ? "AND alertable = '1'" : '';
 
     local $" = ', ';
     my $sel = prepare_ca(qq{


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic