Validating many warnings and notices

This commit is contained in:
Julio Cesar Laura
2013-01-31 10:41:53 -04:00
parent 73e141e430
commit c861260c67
5 changed files with 11 additions and 1 deletions

View File

@@ -5509,6 +5509,9 @@ class xmlformTemplate extends Smarty
if (! is_array( $value )) { if (! is_array( $value )) {
if ($form->type == 'grid') { if ($form->type == 'grid') {
$aAux = array (); $aAux = array ();
if (!isset($form->values[$form->name])) {
$form->values[$form->name] = array();
}
if ($therow == - 1) { if ($therow == - 1) {
for ($i = 0; $i < count( $form->values[$form->name] ); $i ++) { for ($i = 0; $i < count( $form->values[$form->name] ); $i ++) {
$aAux[] = ''; $aAux[] = '';

View File

@@ -67,6 +67,7 @@ class dashletRssReader implements DashletInterface
) ); ) );
} }
$self = new stdclass();
$self->rss = @simplexml_load_string( curl_exec( $pCurl ) ); $self->rss = @simplexml_load_string( curl_exec( $pCurl ) );
if ($self->rss) { if ($self->rss) {
$index = 0; $index = 0;

View File

@@ -216,6 +216,9 @@ class DynaFormField extends DBTable
} }
// parent::Save(); // parent::Save();
if (!isset($Fields['XMLNODE_VALUE'])) {
$Fields['XMLNODE_VALUE'] = '';
}
if (trim($Fields['XMLNODE_VALUE']) != "") { if (trim($Fields['XMLNODE_VALUE']) != "") {
$attributes['#cdata'] = $Fields['XMLNODE_VALUE']; $attributes['#cdata'] = $Fields['XMLNODE_VALUE'];
} }
@@ -247,4 +250,3 @@ class DynaFormField extends DBTable
return ($res->count() == 0); return ($res->count() == 0);
} }
} }

View File

@@ -59,6 +59,7 @@ $tabItems = array ();
$i = 0; $i = 0;
foreach ($menuTypes as $menuType) { foreach ($menuTypes as $menuType) {
$tabItems[$i] = new stdclass();
$tabItems[$i]->id = $menuType; $tabItems[$i]->id = $menuType;
$LABEL_TRANSLATION = G::LoadTranslation( "ID_" . strtoupper( $menuType ) ); $LABEL_TRANSLATION = G::LoadTranslation( "ID_" . strtoupper( $menuType ) );

View File

@@ -64,6 +64,9 @@ try {
} }
//Validating TAS_ASSIGN_VARIABLE value //Validating TAS_ASSIGN_VARIABLE value
if (!isset($aData['TAS_ASSIGN_TYPE'])) {
$aData['TAS_ASSIGN_TYPE'] = 'BALANCED';
}
if ($aData['TAS_ASSIGN_TYPE'] == 'SELF_SERVICE_EVALUATE') { if ($aData['TAS_ASSIGN_TYPE'] == 'SELF_SERVICE_EVALUATE') {
$aData['TAS_ASSIGN_TYPE'] = 'SELF_SERVICE'; $aData['TAS_ASSIGN_TYPE'] = 'SELF_SERVICE';
} else { } else {