You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2014/09/12 21:19:14 UTC

svn commit: r1624619 - /vcl/trunk/web/.ht-inc/utils.php

Author: jfthomps
Date: Fri Sep 12 19:19:14 2014
New Revision: 1624619

URL: http://svn.apache.org/r1624619
Log:
VCL-776 - rework resource code to have a base class for all resources and inheriting classes for each resource type

utils.php: modified getContinuationVar: added check for $contdata[$name] being an object to prevent php trying to convert an object to an int to compare with 'zero'

Modified:
    vcl/trunk/web/.ht-inc/utils.php

Modified: vcl/trunk/web/.ht-inc/utils.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/utils.php?rev=1624619&r1=1624618&r2=1624619&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/utils.php (original)
+++ vcl/trunk/web/.ht-inc/utils.php Fri Sep 12 19:19:14 2014
@@ -3380,7 +3380,7 @@ function getContinuationVar($name=NULL, 
 	if(! $inContinuation)
 		return $defaultval;
 	if(array_key_exists($name, $contdata)) {
-		if($contdata[$name] == 'zero')
+		if(! is_object($contdata[$name]) && $contdata[$name] == 'zero')
 			return 0;
 		return $contdata[$name];
 	}