mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed PHP Warnings
This commit is contained in:
parent
3d32d5645e
commit
83967d3526
@ -14,6 +14,7 @@
|
|||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
if(!isset($table->width)) {
|
if(!isset($table->width)) {
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -500,7 +501,7 @@ foreach ($result as $event) {
|
|||||||
if (!empty($event_user_comments)) {
|
if (!empty($event_user_comments)) {
|
||||||
$last_key = key(array_slice($event_user_comments, -1, 1, true));
|
$last_key = key(array_slice($event_user_comments, -1, 1, true));
|
||||||
$date_format = $config['date_format'];
|
$date_format = $config['date_format'];
|
||||||
|
|
||||||
foreach ($event_user_comments as $key => $event_user_comment) {
|
foreach ($event_user_comments as $key => $event_user_comment) {
|
||||||
$event_user_comment_str .= sprintf('%s: %s<br>%s: %s<br>%s: %s<br>',
|
$event_user_comment_str .= sprintf('%s: %s<br>%s: %s<br>%s: %s<br>',
|
||||||
__('Date'), date($date_format, $event_user_comment['utimestamp']),
|
__('Date'), date($date_format, $event_user_comment['utimestamp']),
|
||||||
@ -591,7 +592,7 @@ foreach ($result as $event) {
|
|||||||
array ("title" => __('Validate event')));
|
array ("title" => __('Validate event')));
|
||||||
$data[$i] .= '</a>';
|
$data[$i] .= '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete event
|
// Delete event
|
||||||
if ((tags_checks_event_acl($config["id_user"], $event["id_grupo"], "EM", $event['clean_tags'],$childrens_ids) == 1)) {
|
if ((tags_checks_event_acl($config["id_user"], $event["id_grupo"], "EM", $event['clean_tags'],$childrens_ids) == 1)) {
|
||||||
if($event['estado'] != 2) {
|
if($event['estado'] != 2) {
|
||||||
@ -677,7 +678,7 @@ if (!empty ($table->data)) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
//~ if (!$readonly && tags_check_acl ($config["id_user"], 0,"EM", $event['clean_tags']) == 1) {
|
//~ if (!$readonly && tags_check_acl ($config["id_user"], 0,"EM", $event['clean_tags']) == 1) {
|
||||||
if (!$readonly && ($show_delete_button)) {
|
if (!$readonly && ($show_delete_button)) {
|
||||||
|
@ -420,6 +420,7 @@ else {
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
//- INI ADVANCE FILTER -------------------------------------------------
|
//- INI ADVANCE FILTER -------------------------------------------------
|
||||||
|
$table_advanced = new stdClass();
|
||||||
$table_advanced->id = 'events_filter_form_advanced';
|
$table_advanced->id = 'events_filter_form_advanced';
|
||||||
$table_advanced->width = '98%';
|
$table_advanced->width = '98%';
|
||||||
$table_advanced->cellspacing = 4;
|
$table_advanced->cellspacing = 4;
|
||||||
@ -543,6 +544,7 @@ $table_advanced->rowclass[] = '';
|
|||||||
//- END ADVANCE FILTER -------------------------------------------------
|
//- END ADVANCE FILTER -------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->id = 'events_filter_form';
|
$table->id = 'events_filter_form';
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->cellspacing = 4;
|
$table->cellspacing = 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user