XOOPS Cube Legacy base repository
Revision | 34644268b20666bcbe0276ad3ea8028d353b4e4d (tree) |
---|---|
Time | 2012-08-16 10:49:42 |
Author | HIKAWA Kilica <kilica.hikawa@gmai...> |
Commiter | HIKAWA Kilica |
#8 AbstractClientObjectHandler fixation is wrong.
@@ -345,7 +345,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand | ||
345 | 345 | */ |
346 | 346 | protected function _isActivityClient(/*** mixed[] ***/ $conf) |
347 | 347 | { |
348 | - return $conf[$this->_mClientConfig['activity']]==1 ? true : false; | |
348 | + $key ='activity'; | |
349 | + if(! isset($this->_mClientConfig[$key])){ | |
350 | + return false; | |
351 | + } | |
352 | + if(! isset($conf[$this->_mClientConfig[$key]])){ | |
353 | + return false; | |
354 | + } | |
355 | + return $conf[$this->_mClientConfig[$key]]==1 ? true : false; | |
349 | 356 | } |
350 | 357 | |
351 | 358 | /** |
@@ -357,7 +364,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand | ||
357 | 364 | */ |
358 | 365 | protected function _isTagClient(/*** mixed[] ***/ $conf) |
359 | 366 | { |
360 | - return isset($conf[$this->_mClientConfig['tag']]) ? true : false; | |
367 | + $key ='tag'; | |
368 | + if(! isset($this->_mClientConfig[$key])){ | |
369 | + return false; | |
370 | + } | |
371 | + if(! isset($conf[$this->_mClientConfig[$key]])){ | |
372 | + return false; | |
373 | + } | |
374 | + return $conf[$this->_mClientConfig[$key]] ? true : false; | |
361 | 375 | } |
362 | 376 | |
363 | 377 | /** |
@@ -369,7 +383,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand | ||
369 | 383 | */ |
370 | 384 | protected function _isWorkflowClient(/*** mixed[] ***/ $conf) |
371 | 385 | { |
372 | - return isset($conf[$this->_mClientConfig['workflow']]) ? true : false; | |
386 | + $key ='workflow'; | |
387 | + if(! isset($this->_mClientConfig[$key])){ | |
388 | + return false; | |
389 | + } | |
390 | + if(! isset($conf[$this->_mClientConfig[$key]])){ | |
391 | + return false; | |
392 | + } | |
393 | + return $conf[$this->_mClientConfig[$key]] ? true : false; | |
373 | 394 | } |
374 | 395 | |
375 | 396 | /** |
@@ -381,7 +402,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand | ||
381 | 402 | */ |
382 | 403 | protected function _isImageClient(/*** mixed[] ***/ $conf) |
383 | 404 | { |
384 | - return isset($conf[$this->_mClientConfig['image']]) ? true : false; | |
405 | + $key ='image'; | |
406 | + if(! isset($this->_mClientConfig[$key])){ | |
407 | + return false; | |
408 | + } | |
409 | + if(! isset($conf[$this->_mClientConfig[$key]])){ | |
410 | + return false; | |
411 | + } | |
412 | + return $conf[$this->_mClientConfig[$key]] ? true : false; | |
385 | 413 | } |
386 | 414 | |
387 | 415 | /** |
@@ -393,8 +421,15 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand | ||
393 | 421 | */ |
394 | 422 | protected function _isMapClient(/*** mixed[] ***/ $conf) |
395 | 423 | { |
396 | - return isset($conf[$this->_mClientConfig['map']]) ? true : false; | |
397 | - } | |
424 | + $key ='map'; | |
425 | + if(! isset($this->_mClientConfig[$key])){ | |
426 | + return false; | |
427 | + } | |
428 | + if(! isset($conf[$this->_mClientConfig[$key]])){ | |
429 | + return false; | |
430 | + } | |
431 | + return $conf[$this->_mClientConfig[$key]]==1 ? true : false; | |
432 | + } | |
398 | 433 | |
399 | 434 | /** |
400 | 435 | * get client field name |