16.03.2008, 13:31
Wenn ich ein neues Thema anklicke, um freizugeben kommt diese Meldung
In den Zeilen 1210-1230 bei meiner Class_mod.php
steht das hier
Könnte mir jemand sagen wo der Fehler liegt?
PHP-Code:
Warning: Missing argument 2 for approve_posts() in /var/www/web23/html/board/inc/class_moderation.php on line 1211
Warning: Missing argument 3 for approve_posts() in /var/www/web23/html/board/inc/class_moderation.php on line 1211
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web23/html/board/inc/class_moderation.php:1211) in /var/www/web23/html/board/inc/functions.php on line 1216
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web23/html/board/inc/class_moderation.php:1211) in /var/www/web23/html/board/inc/functions.php on line 621
In den Zeilen 1210-1230 bei meiner Class_mod.php
steht das hier
PHP-Code:
*/
function approve_posts($pids, $tid, $fid)
{
global $db, $cache;
$thread = get_thread($tid);
$num_posts = 0;
foreach($pids as $pid)
{
$query = $db->query("
SELECT p.tid, f.usepostcounts, p.uid, p.visible
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=p.fid)
WHERE p.pid='{$pid}' AND p.visible = '0'
");
while($post = $db->fetch_array($query))
{
// If post counts enabled in this forum and the post hasn't already been approved, add 1
if($post['usepostcounts'] != "no")
Könnte mir jemand sagen wo der Fehler liegt?