Update export.php

use the getlabel function rather than use it directly