Update graph.php

Variable spelling mistake make true condition impossible in this if statement.