]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
wret instead of ret var
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Mon, 30 Jul 2012 11:54:34 +0000 (13:54 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Mon, 30 Jul 2012 11:54:34 +0000 (13:54 +0200)
web/spush/brisk-spush.php

index d39ba04e5236b6600b8e3bb8ec3a5449da3f0428..788de8cfcd8cb79dd7d7e50b40c269525d055eaf 100755 (executable)
@@ -268,8 +268,8 @@ function main()
 
                                 $wret = @fwrite($new_socket, headers_render($header_out).$content);
                                 if ($wret < $content_l) {
-                                    printf("TROUBLES WITH FWRITE: %d\n", $ret);
-                                    $user->rd_cache_set(mb_substr($content, $ret, $content_l - $ret, "ASCII"));
+                                    printf("TROUBLES WITH FWRITE: %d\n", $wret);
+                                    $user->rd_cache_set(mb_substr($content, $wret, $content_l - $wret, "ASCII"));
                                 }
                                 else {
                                     $user->rd_cache_set("");