summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 953562d..01913e3 100644
--- a/it_url.class
+++ b/it_url.class
@@ -316,7 +316,7 @@ function request($p=array())
{
$opts[CURLOPT_WRITEFUNCTION] = function ($dummy, $data) use ($p, &$content) {
static $space;
- $write = min($space ?? $p['maxlength'], strlen($data));
+ $write = min($space ??= $p['maxlength'], strlen($data));
$content .= substr($data, 0, $write);
$space -= $write;
return $write;