Nie znam się kompletnie na PHP mam do ukończenia do końca tygodnia stronę internetową, a gość który mi ją przygotował jest na urlopie.
Czasami przy wprowadzaniu danych na stronę wyskakuje mi taki oto błąd:
( ! ) Notice: Undefined index: text in /home/mjerominek/domains/acteongroup.com/public_html/pl/eternity/modules/text/index.php on line 44
Call Stack
# Time Memory Function Location
1 0.0026 1545100 {main}( ) ../index.php:0
2 0.0289 1755772 module->load( ) ../index.php:106
3 0.0312 1776940 include( '/home/mjerominek/domains/acteongroup.com/public_html/pl/eternity/modules/text/index.php' ) ../module.class.php:29[/b][/b]
Poniżej wklejam to co znajduje sie w pliku index.php
<? /* Bartosz_Szczecinski btm@anfo.pl 20070810 0.6 1 */ ?> <? $text = new text(); else { } $text->delete((int)$_GET['delete']); } 'editor' => $_SESSION['user_id'], 'text' => $_POST['text']['text'], 'module_id' => $_GET['module'], 'type' => 'backup' )); $_GET['source'] = $content['id']; } else { 'editor' => $_SESSION['user_id'], 'text' => $_POST['text']['text'] 'id' => $_GET['source'], 'module_id' => $_GET['module'], 'type' => $type )); } else { 'editor' => $_SESSION['user_id'], 'text' => $_POST['text']['text'] 'module_id' => $_GET['module'], 'type' => $type )); } } } else { 'id' => $_GET['source'], )); } else { 'module_id' => $_GET['module'], 'type' => $type, )); } } $content['type'] = $type; $tpl->assign('text', $content); $tpl->assign('backups', $text->getBackups($_GET['module'])); $page_templates[] = '../modules/text/templates/admin/default.tpl';
Proszę pomóźcie co trzeba zmienić aby to normalnie działało
Z góry dzięki