Skip to content

Commit

Permalink
Merge pull request joomla#136 from WebMechanic/client_id
Browse files Browse the repository at this point in the history
Undefined index: 'CLIENT' in updater/adapters/collection.php
  • Loading branch information
LouisLandry committed Jul 27, 2011
2 parents d34324c + 31db4c8 commit a778311
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions libraries/joomla/updater/adapters/collection.php
Expand Up @@ -18,13 +18,13 @@
* @subpackage Updater
* @since 11.1
* */

class JUpdaterCollection extends JUpdateAdapter {
/**
* Root of the tree
*
*
* @var object
* @since 11.1
* @since 11.1
*/
protected $base;

Expand All @@ -38,9 +38,9 @@ class JUpdaterCollection extends JUpdateAdapter {

/**
* Used to control if an item has a child or not
*
*
* @var boolean
* @since 11.1
* @since 11.1
*/
protected $pop_parent = 0;

Expand All @@ -52,7 +52,7 @@ class JUpdaterCollection extends JUpdateAdapter {
/**
* A list of discovered updates
*
* @var array
* @var array
*/
protected $updates;

Expand All @@ -71,7 +71,7 @@ protected function _getStackLocation()

/**
* Get the parent tag
*
*
* @return string parent
*
* @since 11.1
Expand Down Expand Up @@ -117,13 +117,13 @@ public function _startElement($parser, $name, $attrs = Array())
if(!array_key_exists($col, $attrs))
{
$attrs[$col] = '';
if($col == 'CLIENT')
if($col == 'CLIENT_ID')
{
$attrs[$col] = 'site';
}
}
}
$client = JApplicationHelper::getClientInfo($attrs['CLIENT'],1);
$client = JApplicationHelper::getClientInfo($attrs['CLIENT_ID'],1);
$attrs['CLIENT_ID'] = $client->id;
// Lower case all of the fields
foreach($attrs as $key=>$attr)
Expand Down Expand Up @@ -158,7 +158,7 @@ public function _startElement($parser, $name, $attrs = Array())
*
* @param object $parser Parser object
* @param string $name Name of the element closing
*
*
* @since 11.1
*/
protected function _endElement($parser, $name)
Expand All @@ -181,11 +181,11 @@ protected function _endElement($parser, $name)

/*
* Find an update
*
*
* @param array Options to use: update_site_id: the unique ID of the update site to look at
*
* @return array Update_sites and updates discovered
*
*
* @since 11.1
*/
public function findUpdate($options)
Expand Down

0 comments on commit a778311

Please sign in to comment.