Merge branch '1738-Problema_en_event.build_query.php_CDE' into 'develop'
fixed warnings php in log pandora See merge request artica/pandorafms!1234
This commit is contained in:
commit
8f2a29ae3c
|
@ -81,12 +81,16 @@ $events_wi_cdata = db_get_all_rows_sql('SELECT id_evento,custom_data from tevent
|
||||||
$count_events = 0;
|
$count_events = 0;
|
||||||
$events_wi_cdata_id = 'OR id_evento IN (';
|
$events_wi_cdata_id = 'OR id_evento IN (';
|
||||||
foreach ($events_wi_cdata as $key => $value) {
|
foreach ($events_wi_cdata as $key => $value) {
|
||||||
if(strpos(strtolower(base64_decode($value['custom_data'])),strtolower($search)) != false){
|
$needle = base64_decode($value['custom_data']);
|
||||||
$events_wi_cdata_id .= $value['id_evento'];
|
if (($needle != "") && ($search != "")) {
|
||||||
$count_events++;
|
if(strpos(strtolower($needle),strtolower($search)) != false){
|
||||||
|
$events_wi_cdata_id .= $value['id_evento'];
|
||||||
|
$count_events++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($value !== end($events_wi_cdata) && $count_events > 0) {
|
if ($value !== end($events_wi_cdata) && $count_events > 0) {
|
||||||
$events_wi_cdata_id .= ',';
|
$events_wi_cdata_id .= ',';
|
||||||
$events_wi_cdata_id = str_replace(',,', ',', $events_wi_cdata_id);
|
$events_wi_cdata_id = str_replace(',,', ',', $events_wi_cdata_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,6 +264,7 @@ html_print_div(array('hidden' => true,
|
||||||
if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0, "EM") ) {
|
if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0, "EM") ) {
|
||||||
// Save filter div for dialog
|
// Save filter div for dialog
|
||||||
echo '<div id="save_filter_layer" style="display: none">';
|
echo '<div id="save_filter_layer" style="display: none">';
|
||||||
|
$table = new StdClass;
|
||||||
$table->id = 'save_filter_form';
|
$table->id = 'save_filter_form';
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->cellspacing = 4;
|
$table->cellspacing = 4;
|
||||||
|
@ -329,6 +330,7 @@ if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0,
|
||||||
|
|
||||||
// Load filter div for dialog
|
// Load filter div for dialog
|
||||||
echo '<div id="load_filter_layer" style="display: none">';
|
echo '<div id="load_filter_layer" style="display: none">';
|
||||||
|
$table = new StdClass;
|
||||||
$table->id = 'load_filter_form';
|
$table->id = 'load_filter_form';
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->cellspacing = 4;
|
$table->cellspacing = 4;
|
||||||
|
|
Loading…
Reference in New Issue