• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revision34644268b20666bcbe0276ad3ea8028d353b4e4d (tree)
Zeit2012-08-16 10:49:42
AutorHIKAWA Kilica <kilica.hikawa@gmai...>
CommiterHIKAWA Kilica

Log Message

#8 AbstractClientObjectHandler fixation is wrong.

Ändern Zusammenfassung

Diff

--- a/html/modules/legacy/class/interface/AbstractClientObjectHandler.class.php
+++ b/html/modules/legacy/class/interface/AbstractClientObjectHandler.class.php
@@ -345,7 +345,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand
345345 */
346346 protected function _isActivityClient(/*** mixed[] ***/ $conf)
347347 {
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;
349356 }
350357
351358 /**
@@ -357,7 +364,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand
357364 */
358365 protected function _isTagClient(/*** mixed[] ***/ $conf)
359366 {
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;
361375 }
362376
363377 /**
@@ -369,7 +383,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand
369383 */
370384 protected function _isWorkflowClient(/*** mixed[] ***/ $conf)
371385 {
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;
373394 }
374395
375396 /**
@@ -381,7 +402,14 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand
381402 */
382403 protected function _isImageClient(/*** mixed[] ***/ $conf)
383404 {
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;
385413 }
386414
387415 /**
@@ -393,8 +421,15 @@ abstract class Legacy_AbstractClientObjectHandler extends XoopsObjectGenericHand
393421 */
394422 protected function _isMapClient(/*** mixed[] ***/ $conf)
395423 {
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+ }
398433
399434 /**
400435 * get client field name