[Rt-commit] rt branch, 4.0/rest-dhandler-warning, created. rt-4.0.6-266-g5f50b53

Alex Vandiver alexmv at bestpractical.com
Wed Aug 15 15:33:12 EDT 2012


The branch, 4.0/rest-dhandler-warning has been created
        at  5f50b53e49a2fba098951db2038ebe0a7dc551da (commit)

- Log -----------------------------------------------------------------
commit 5f50b53e49a2fba098951db2038ebe0a7dc551da
Author: Kevin Riggle <kevinr at bestpractical.com>
Date:   Wed Aug 15 15:20:53 2012 -0400

    Protect against an undefined warning, as $args is not required

diff --git a/share/html/REST/1.0/dhandler b/share/html/REST/1.0/dhandler
index a6fc897..dbf0bb6 100755
--- a/share/html/REST/1.0/dhandler
+++ b/share/html/REST/1.0/dhandler
@@ -242,7 +242,7 @@ foreach $object (@objects) {
         $handler = "Forms/$type/$attr";
 
         unless ($m->comp_exists($handler)) {
-            $args = "$attr/$args";
+            $args = defined $args ? "$attr/$args" : $attr;
             $handler = "Forms/$type/default";
 
             unless ($m->comp_exists($handler)) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list