You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vi...@apache.org on 2012/06/07 04:03:51 UTC

svn commit: r1347296 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/php/db/HMCDBAccessor.php

Author: vikram
Date: Thu Jun  7 02:03:51 2012
New Revision: 1347296

URL: http://svn.apache.org/viewvc?rev=1347296&view=rev
Log:
AMBARI-476. Undefined offset: 0 in /usr/share/hmc/php/db/HMCDBAccessor.php on line 1030 (Contributed by Hitesh)

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/php/db/HMCDBAccessor.php

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347296&r1=1347295&r2=1347296&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun  7 02:03:51 2012
@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-476. Undefined offset: 0 in /usr/share/hmc/php/db/HMCDBAccessor.php on line 1030 (Hitesh via Vikram)
+
   AMBARI-475. Add missing JS file for making post cluster install Add Nodes work (Yusaku via Vikram)
 
   AMBARI-473. Secondary namenode checkpoint dir doesnt get created if its on the same host as NN. (Mahadev via Vikram)

Modified: incubator/ambari/branches/ambari-186/hmc/php/db/HMCDBAccessor.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/php/db/HMCDBAccessor.php?rev=1347296&r1=1347295&r2=1347296&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/php/db/HMCDBAccessor.php (original)
+++ incubator/ambari/branches/ambari-186/hmc/php/db/HMCDBAccessor.php Thu Jun  7 02:03:51 2012
@@ -1030,7 +1030,7 @@ class HMCDBAccessor {
       }
       while (sizeof($order) > 0) {
         // is it an array of arrays, for an array of sortColumn and sortOrder?        
-        if (is_array($order[0])) {
+        if (isset($order[0]) && is_array($order[0])) {
           $this->logger->log_debug('Order is array of arrays');
           $orderItem = array_shift($order);
         } else {