laravel/laravel — pull request #1089 by kbanman (2012-08-11 22:56:32+00:00)
Title: Fix Query::lists() for empty resultsets

`array_combine()` doesn't work with empty arrays, so this patch just prevents it from being called when there are no rows to call it on.

Test case:

$results = DB::table('users')->where_id(0)->lists('email', 'id');